public class HornetQTextMessage extends HornetQMessage implements TextMessage
| Modifier and Type | Field and Description |
|---|---|
static Logger |
log |
static byte |
TYPE |
message, propertiesReadOnly, readOnlyDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
HornetQTextMessage(ClientMessage message,
ClientSession session) |
HornetQTextMessage(ClientSession session) |
HornetQTextMessage(TextMessage foreign,
ClientSession session)
A copy constructor for non-HornetQ JMS TextMessages.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody()
Clears out the message body.
|
void |
doBeforeReceive() |
void |
doBeforeSend() |
String |
getText()
Gets the string containing this message's data.
|
byte |
getType() |
void |
setText(String text)
Sets the string containing this message's data.
|
acknowledge, checkBuffer, checkRead, checkWrite, clearProperties, coreMaptoJMSMap, createMessage, getBooleanProperty, getByteProperty, getCoreMessage, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, resetMessageID, saveToOutputStream, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setInputStream, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOutputStream, setShortProperty, setStringProperty, toString, waitCompletionOnStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringPropertypublic static final byte TYPE
public static final Logger log
public HornetQTextMessage(ClientSession session)
public HornetQTextMessage(ClientMessage message, ClientSession session)
public HornetQTextMessage(TextMessage foreign, ClientSession session) throws JMSException
JMSExceptionpublic byte getType()
getType in class HornetQMessagepublic void setText(String text) throws JMSException
TextMessagesetText in interface TextMessagetext - the String containing the message's dataJMSException - if the JMS provider fails to set the text due to
some internal error.MessageNotWriteableException - if the message is in read-only
mode.public String getText() throws JMSException
TextMessagegetText in interface TextMessageString containing the message's dataJMSException - if the JMS provider fails to get the text due to
some internal error.public void clearBody()
throws JMSException
MessageIf this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.
clearBody in interface MessageclearBody in class HornetQMessageJMSException - if the JMS provider fails to clear the message
body due to some internal error.public void doBeforeSend()
throws Exception
doBeforeSend in class HornetQMessageExceptionpublic void doBeforeReceive()
throws Exception
doBeforeReceive in class HornetQMessageExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.