public class FixedSchemaDataSerializer extends DataSerializer
MAX_SUB_MESSAGE_HEADER_SPACE, NORMAL_SUB_MESSAGE_HEADER_SIZE, sendBuffers, serializer
Constructor and Description |
---|
FixedSchemaDataSerializer(MessageSchema messageSchema) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
serializeData(java.lang.Object payload,
SerializeState state,
DataBuffer targetBuffer,
DataPacker dataPacker)
Helper method that builds the body of the message for regular messages.
|
serializeSingleMessage
build, init
public FixedSchemaDataSerializer(MessageSchema messageSchema)
protected boolean serializeData(java.lang.Object payload, SerializeState state, DataBuffer targetBuffer, DataPacker dataPacker)
serializeData
in class DataSerializer
payload
- the message that needs to be builtstate
- the state object of the messagetargetBuffer
- the data targetBuffer to which the built message needs to be copied