public interface SerializationAware
| Modifier and Type | Method and Description |
|---|---|
<T> SerializedObject<T> |
serializeMetaData(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the meta data of this message using given
serializer, using given
expectedRepresentation. |
<T> SerializedObject<T> |
serializePayload(Serializer serializer,
Class<T> expectedRepresentation)
Serialize the payload of this message using given
serializer, using given
expectedRepresentation. |
<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 toCopyright © 2010–2018. All rights reserved.