public class HornetQTextMessage extends HornetQMessage implements TextMessage
Modifier and Type | Field and Description |
---|---|
static Logger |
log |
static byte |
TYPE |
message, propertiesReadOnly, readOnly
DEFAULT_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, waitCompletionOnStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acknowledge, 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, setStringProperty
public 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
JMSException
public byte getType()
getType
in class HornetQMessage
public void setText(String text) throws JMSException
TextMessage
setText
in interface TextMessage
text
- 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
TextMessage
getText
in interface TextMessage
String
containing the message's dataJMSException
- if the JMS provider fails to get the text due to
some internal error.public void clearBody() throws JMSException
Message
If 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 Message
clearBody
in class HornetQMessage
JMSException
- if the JMS provider fails to clear the message
body due to some internal error.public void doBeforeSend() throws Exception
doBeforeSend
in class HornetQMessage
Exception
public void doBeforeReceive() throws Exception
doBeforeReceive
in class HornetQMessage
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.