|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.impl.messaging.JMSBytesSender
public class JMSBytesSender
RecordSender for sending a raw byte array,
| Constructor Summary | |
|---|---|
JMSBytesSender()
Creates an empty JMSBytesSender. |
|
| Method Summary | |
|---|---|
void |
closeProducer()
Closes the underlying JMS MessageProducer making it unable to send Records. |
void |
openProducer()
Opens the underlying JMS MessageProducer, allowing it to begin sending Records. |
void |
sendRecord(byte[] bytes)
Packs the byte array into a JMS BytesMessage, and sends it. |
void |
sendRecord(byte[] bytes,
int offset,
int len,
String contentType)
Packs a segment of the byte array into a JMS BytesMessage, and sends it. |
void |
sendRecord(byte[] bytes,
String contentType)
Packs the byte array into a JMS BytesMessage, and sends it. |
void |
setDestination(javax.jms.Destination dest)
Sets the JMS Destination to send to. |
void |
setSession(javax.jms.Session session)
Sets the JMS Session to use for sending |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSBytesSender()
| Method Detail |
|---|
public void setSession(javax.jms.Session session)
session - public void setDestination(javax.jms.Destination dest)
dest - JMS Destination to send topublic void closeProducer()
public void openProducer()
public void sendRecord(byte[] bytes)
sendRecord in interface RecordSender<byte[]>bytes - byte array to send
public void sendRecord(byte[] bytes,
String contentType)
bytes - byte array to sendcontentType - optional content type for the JMS header
public void sendRecord(byte[] bytes,
int offset,
int len,
String contentType)
bytes - byte array to send fromoffset - byte array offsetlen - number of bytes 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 | |||||||||