Class ActiveMQTextCompatibleMessage
- java.lang.Object
-
- org.apache.activemq.artemis.jms.client.ActiveMQMessage
-
- org.apache.activemq.artemis.jms.client.ActiveMQTextMessage
-
- org.apache.activemq.artemis.jms.client.compatible1X.ActiveMQTextCompatibleMessage
-
- All Implemented Interfaces:
Message,TextMessage
public class ActiveMQTextCompatibleMessage extends ActiveMQTextMessage
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQTextMessage
TYPE
-
Fields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQMessage
message, OLD_QUEUE_QUALIFIED_PREFIX, OLD_TEMP_QUEUE_QUALIFED_PREFIX, OLD_TEMP_TOPIC_QUALIFED_PREFIX, OLD_TOPIC_QUALIFIED_PREFIX, propertiesReadOnly, readOnly, replyTo
-
Fields inherited from interface jakarta.jms.Message
DEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
-
-
Constructor Summary
Constructors Constructor Description ActiveMQTextCompatibleMessage(TextMessage foreign, ClientSession session)ActiveMQTextCompatibleMessage(ClientMessage message, ClientSession session)ActiveMQTextCompatibleMessage(ClientSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SimpleStringcheckPrefix(SimpleString address)DestinationgetJMSReplyTo()Gets theDestinationobject to which a reply to this message should be sent.voidsetJMSReplyTo(Destination dest)Sets theDestinationobject to which a reply to this message should be sent.-
Methods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQTextMessage
clearBody, doBeforeReceive, getBodyInternal, getText, getType, isBodyAssignableTo, setText
-
Methods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQMessage
acknowledge, checkBuffer, checkPrefixStr, checkRead, checkWrite, clearProperties, coreCompositeTypeToJMSCompositeType, coreMaptoJMSMap, createMessage, createMessage, doBeforeSend, getBody, getBooleanProperty, getByteProperty, getCoreMessage, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hasNoBody, prefixOf, propertyExists, resetMessageID, saveToOutputStream, setBooleanProperty, setByteProperty, setClientAcknowledge, setDoubleProperty, setFloatProperty, setIndividualAcknowledge, setInputStream, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOutputStream, setShortProperty, setStringProperty, toString, waitCompletionOnStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Message
acknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
-
-
-
Constructor Detail
-
ActiveMQTextCompatibleMessage
public ActiveMQTextCompatibleMessage(ClientSession session)
-
ActiveMQTextCompatibleMessage
public ActiveMQTextCompatibleMessage(ClientMessage message, ClientSession session)
-
ActiveMQTextCompatibleMessage
public ActiveMQTextCompatibleMessage(TextMessage foreign, ClientSession session) throws JMSException
- Throws:
JMSException
-
-
Method Detail
-
setJMSReplyTo
public void setJMSReplyTo(Destination dest) throws JMSException
Description copied from interface:MessageSets theDestinationobject to which a reply to this message should be sent.The
JMSReplyToheader field contains the destination where a reply to the current message should be sent. If it is null, no reply is expected. The destination may be either aQueueobject or aTopicobject.Messages sent with a null
JMSReplyTovalue may be a notification of some event, or they may just be some data the sender thinks is of interest.Messages with a
JMSReplyTovalue typically expect a response. A response is optional; it is up to the client to decide. These messages are called requests. A message sent in response to a request is called a reply.In some cases a client may wish to match a request it sent earlier with a reply it has just received. The client can use the
JMSCorrelationIDheader field for this purpose.- Specified by:
setJMSReplyToin interfaceMessage- Overrides:
setJMSReplyToin classActiveMQMessage- Parameters:
dest-Destinationto which to send a response to this message- Throws:
JMSException- if the Jakarta Messaging provider fails to set theJMSReplyTodestination due to some internal error.- See Also:
Message.getJMSReplyTo()
-
getJMSReplyTo
public Destination getJMSReplyTo() throws JMSException
Description copied from interface:MessageGets theDestinationobject to which a reply to this message should be sent.- Specified by:
getJMSReplyToin interfaceMessage- Overrides:
getJMSReplyToin classActiveMQMessage- Returns:
Destinationto which to send a response to this message- Throws:
JMSException- if the Jakarta Messaging provider fails to get theJMSReplyTodestination due to some internal error.- See Also:
Message.setJMSReplyTo(Destination)
-
checkPrefix
protected SimpleString checkPrefix(SimpleString address)
- Overrides:
checkPrefixin classActiveMQMessage
-
-