|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializationAware
Marker interface for messages that have special serialization awareness. Typically, implementations will optimize the serialization process by reusing serialized formats across invocations. This is particularly useful in cases where an object needs to be serialized more than once using the same serializer.
Method Summary | ||
---|---|---|
|
serializeMetaData(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the meta data of this message using given serializer , using given
expectedRepresentation . |
|
|
serializePayload(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the payload of this message using given serializer , using given
expectedRepresentation . |
Method Detail |
---|
<T> SerializedObject<T> serializePayload(Serializer serializer, Class<T> expectedRepresentation)
serializer
, using given
expectedRepresentation
. This method should return the same SerializedObject instance when
invoked multiple times using the same serializer.
T
- The type of data to serialize toserializer
- The serializer to serialize payload withexpectedRepresentation
- The type of data to serialize to
<T> SerializedObject<T> serializeMetaData(Serializer serializer, Class<T> expectedRepresentation)
serializer
, using given
expectedRepresentation
. This method should return the same SerializedObject instance when
invoked multiple times using the same serializer.
T
- The type of data to serialize toserializer
- The serializer to serialize meta data withexpectedRepresentation
- The type of data to serialize to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |