public interface JmsObjectMessageFacade extends JmsMessageFacade
Modifier and Type | Method and Description |
---|---|
JmsObjectMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
Serializable |
getObject()
Gets the Object value that is contained in the provider message.
|
void |
setObject(Serializable value)
Stores the given object into the provider Message.
|
clearBody, clearProperties, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytes
JmsObjectMessageFacade copy() throws javax.jms.JMSException
JmsMessageFacade
copy
in interface JmsMessageFacade
javax.jms.JMSException
- if an error occurs while copying this message.Serializable getObject() throws IOException, ClassNotFoundException
IOException
- if the provider fails to get the object due to some internal error.ClassNotFoundException
- if object de-serialization fails because the ClassLoader
cannot find the Class locally.void setObject(Serializable value) throws IOException
value
- the new value to write to the provider message.IOException
- if the provider fails to store the object due to some internal error.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.