|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.impl.messaging.JMSAvroRecordSender<T>
T
- type of Avro Record to sendpublic class JMSAvroRecordSender<T extends org.apache.avro.generic.IndexedRecord>
Sends Avro Records over JMS (Qpid).
Constructor Summary | |
---|---|
JMSAvroRecordSender(JMSBytesMessageSender sender)
Creates a new JMSAvroRecordSender. |
Method Summary | |
---|---|
void |
sendRecord(T record)
Serializes the given Avro Record to a byte array, packs it into a JMS BytesMessage, and sends it to the JMS Destination. |
void |
sendRecord(T record,
String contentType)
Packs the given Avro Record into a JMS BytesMessage and sends it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSAvroRecordSender(JMSBytesMessageSender sender)
sender
- JMSBytesSender to send RecordsMethod Detail |
---|
public void sendRecord(T record)
sendRecord
in interface org.robokind.api.messaging.RecordSender<T extends org.apache.avro.generic.IndexedRecord>
record
- the Avro Record to sendpublic void sendRecord(T record, String contentType)
record
- Record to sendcontentType
- optional content type for the JMS header
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |