public class SolObjectMessage extends SolMessage implements ObjectMessageIF
JMSMessageIDPrefix, PRORITY_MAX, PRORITY_UNDEFINEDDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
SolObjectMessage() |
SolObjectMessage(BytesXMLMessage message) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody()
Clears out the message body.
|
Serializable |
getObject()
Gets the serializable object containing this message's data.
|
byte[] |
getSerializedObject() |
void |
setObject(Serializable newObject)
Sets the serializable object containing this message's data.
|
acknowledge, clearProperties, dump, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getHTTPContentEncoding, getHTTPContentType, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getJMSXDeliveryCount, getLongProperty, getMessage, getMessageSize, getObjectProperty, getProperties, getPropertyNames, getSenderID, getShortProperty, getStringProperty, isDMQEligible, isDTO, isElidingEligible, isReplyMsg, isXML, propertyExists, removeProperty, setAckHandler, setBooleanProperty, setByteProperty, setDiscardIndication, setDoubleProperty, setFloatProperty, setHTTPContentEncoding, setHTTPContentType, setIntProperty, setIsDMQEligible, setIsDTO, setIsElidingEligible, setIsReplyMsg, setIsXML, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setJMSXDeliveryCount, setLongProperty, setObjectProperty, setObjectPropertyWithoutReadOnlyCheck, setSenderID, setShortProperty, setStringProperty, setTopicSequenceNumber, toStringequals, 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 SolObjectMessage()
public SolObjectMessage(BytesXMLMessage message)
public byte[] getSerializedObject()
getSerializedObject in interface ObjectMessageIFpublic void clearBody()
throws JMSException
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 MessageclearBody in class SolMessageJMSException - if the JMS provider fails to clear the message
body due to some internal error.public void setObject(Serializable newObject) throws JMSException
ObjectMessage
contains a snapshot of the object at the time setObject()
is called; subsequent modifications of the object will have no
effect on the ObjectMessage body.setObject in interface ObjectMessagenewObject - the message's dataJMSException - if the JMS 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.public Serializable getObject() throws JMSException
getObject in interface ObjectMessageJMSException - on errorCopyright 2004-2019 Solace Corporation. All rights reserved.