public class AmqpJmsObjectMessageFacade extends AmqpJmsMessageFacade implements JmsObjectMessageFacade
connection| Constructor and Description |
|---|
AmqpJmsObjectMessageFacade() |
| Modifier and Type | Method and Description |
|---|---|
JmsObjectMessage |
asJmsMessage() |
void |
clearBody()
Clears the contents of this Message.
|
AmqpJmsObjectMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
byte |
getJmsMsgType() |
Serializable |
getObject()
Gets the Object value that is contained in the provider message.
|
boolean |
hasBody()
Returns true if the underlying message has a body, false if the body is empty.
|
void |
initialize(AmqpConnection connection)
Initialize the state of this message for send.
|
void |
initialize(AmqpConsumer consumer)
Initialize the state of this message for receive.
|
boolean |
isAmqpTypedEncoding() |
void |
onSend(long producerTtl)
Called before a message is sent to allow a Message instance to move the
contents from a logical data structure to a binary form for transmission, or
other processing such as setting proper message headers etc.
|
void |
setObject(Serializable value)
Stores the given object into the provider Message.
|
applicationPropertyExists, clearProperties, copyInto, encodeMessage, filterTracingAnnotations, getAmqpTimeToLiveOverride, getApplicationProperty, getApplicationPropertyNames, getContentType, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getReplyToGroupId, getTimestamp, getTracingAnnotation, getTracingContext, getType, getUserId, getUserIdBytes, hasAmqpTimeToLiveOverride, initializeEmptyBody, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, propertyExists, removeTracingAnnotation, removeTracingContext, setAmqpTimeToLiveOverride, setApplicationProperty, setContentType, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setReplyToGroupId, setTimestamp, setTracingAnnotation, setTracingContext, setType, setUserId, setUserIdBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, encodeMessage, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytesfilterTracingAnnotations, getTracingAnnotation, getTracingContext, removeTracingAnnotation, removeTracingContext, setTracingAnnotation, setTracingContextpublic void initialize(AmqpConnection connection)
AmqpJmsMessageFacadeinitialize in class AmqpJmsMessageFacadeconnection - The connection that this message is linked to.public void initialize(AmqpConsumer consumer)
AmqpJmsMessageFacadeinitialize in class AmqpJmsMessageFacadeconsumer - The consumer that this message was read from.public byte getJmsMsgType()
getJmsMsgType in class AmqpJmsMessageFacadepublic boolean isAmqpTypedEncoding()
public AmqpJmsObjectMessageFacade copy() throws javax.jms.JMSException
JmsMessageFacadecopy in interface JmsMessageFacadecopy in interface JmsObjectMessageFacadecopy in class AmqpJmsMessageFacadejavax.jms.JMSException - if an error occurs while copying the message.public Serializable getObject() throws IOException, ClassNotFoundException
JmsObjectMessageFacadegetObject in interface JmsObjectMessageFacadeIOException - 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.public void setObject(Serializable value) throws IOException
JmsObjectMessageFacadesetObject in interface JmsObjectMessageFacadevalue - the new value to write to the provider message.IOException - if the provider fails to store the object due to some internal error.public void clearBody()
JmsMessageFacadeclearBody in interface JmsMessageFacadeclearBody in class AmqpJmsMessageFacadepublic boolean hasBody()
JmsMessageFacadehasBody in interface JmsMessageFacadehasBody in class AmqpJmsMessageFacadepublic void onSend(long producerTtl)
throws javax.jms.JMSException
JmsMessageFacadeonSend in interface JmsMessageFacadeonSend in class AmqpJmsMessageFacadeproducerTtl - the time to live value configured on the producer when sent.javax.jms.JMSException - if an error occurs while preparing the message for send.public JmsObjectMessage asJmsMessage()
asJmsMessage in class AmqpJmsMessageFacadeCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.