public interface AmqpObjectTypeDelegate
Modifier and Type | Method and Description |
---|---|
Serializable |
getObject()
Read a Serialized object from the AMQP message using the strategy implemented
by this delegate.
|
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()
boolean isAmqpTypeEncoded()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.