public interface AmqpObjectTypeDelegate
| Modifier and Type | Method and Description |
|---|---|
void |
copyInto(AmqpObjectTypeDelegate copy)
Copy the internal data into the given instance.
|
Serializable |
getObject()
Read a Serialized object from the AMQP message using the strategy implemented
by this delegate.
|
boolean |
hasBody() |
boolean |
isAmqpTypeEncoded() |
void |
onSend()
Signals that the message is about to be sent so we should ensure proper state of
the marshaled object and message annotations prior to that.
|
void |
setObject(Serializable value)
Given a serializable instance, store the value into the AMQP message using
the strategy implemented by this delegate.
|
void setObject(Serializable value) throws IOException
value - A serializable object instance to be stored in the message.IOException - if an error occurs during the store operation.Serializable getObject() throws IOException, ClassNotFoundException
IOException - if an error occurs while reading the stored object.ClassNotFoundException - if no class can be found for the stored type.void onSend()
void copyInto(AmqpObjectTypeDelegate copy) throws Exception
copy - the new delegate that will receive a copy of this instances object data.Exception - if an error occurs while copying the contents to the target.boolean isAmqpTypeEncoded()
boolean hasBody()
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.