Package org.apache.activemq.artemis.ra
Class ActiveMQRAObjectMessage
java.lang.Object
org.apache.activemq.artemis.ra.ActiveMQRAMessage
org.apache.activemq.artemis.ra.ActiveMQRAObjectMessage
- All Implemented Interfaces:
Message,ObjectMessage
A wrapper for a
ObjectMessage.-
Field Summary
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
message, sessionFields inherited from interface jakarta.jms.Message
DEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the serializable object containing this message's data.voidsetObject(Serializable object) Sets the serializable object containing this message's data.Methods inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
acknowledge, clearBody, clearProperties, equals, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.jms.Message
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
Constructor Details
-
ActiveMQRAObjectMessage
-
-
Method Details
-
getObject
Gets the serializable object containing this message's data. The default value is null.- Specified by:
getObjectin interfaceObjectMessage- Returns:
- the serializable object containing this message's data
- Throws:
JMSException- if the Jakarta Messaging provider fails to get the object due to some internal error.MessageFormatException- if object deserialization fails.
-
setObject
Sets the serializable object containing this message's data. It is important to note that anObjectMessagecontains a snapshot of the object at the timesetObject()is called; subsequent modifications of the object will have no effect on theObjectMessagebody.- Specified by:
setObjectin interfaceObjectMessage- Parameters:
object- the message's data- Throws:
JMSException- if the Jakarta Messaging provider fails to set the object due to some internal error.MessageFormatException- if object serialization fails.MessageNotWriteableException- if the message is in read-only mode.
-