public class JsonTupleProducer extends Object implements JmsTupleProducer
A simple JmsTupleProducer
that expects to receive JMS TextMessage
objects with a body in JSON format.
Constructor and Description |
---|
JsonTupleProducer() |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output fields produced by this JmsTupleProducer.
|
Values |
toTuple(javax.jms.Message msg)
Process a JMS message object to create a Values object.
|
public Values toTuple(javax.jms.Message msg) throws javax.jms.JMSException
JmsTupleProducer
Process a JMS message object to create a Values object.
toTuple
in interface JmsTupleProducer
msg
- javax.jms.JMSException
public void declareOutputFields(OutputFieldsDeclarer declarer)
JmsTupleProducer
Declare the output fields produced by this JmsTupleProducer.
declareOutputFields
in interface JmsTupleProducer
declarer
- The OuputFieldsDeclarer for the spout.Copyright © 2022 The Apache Software Foundation. All Rights Reserved.