public class FixedSchemaKeyedDataSerializer extends KeyedDataSerializer
MAX_SUB_MESSAGE_HEADER_SPACE, NORMAL_SUB_MESSAGE_HEADER_SIZE, sendBuffers, serializer| Constructor and Description |
|---|
FixedSchemaKeyedDataSerializer(MessageSchema messageSchema) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
serializeKeyedData(java.lang.Object payload,
java.lang.Object key,
DataPacker dataPacker,
DataPacker keyPacker,
SerializeState state,
DataBuffer targetBuffer)
Helper method that builds the body of the message for keyed messages.
|
init, serializeSingleMessagebuildpublic FixedSchemaKeyedDataSerializer(MessageSchema messageSchema)
protected boolean serializeKeyedData(java.lang.Object payload,
java.lang.Object key,
DataPacker dataPacker,
DataPacker keyPacker,
SerializeState state,
DataBuffer targetBuffer)
serializeKeyedData in class KeyedDataSerializerpayload - the message that needs to be builtkey - the key associated with the messagestate - the state object of the messagetargetBuffer - the data targetBuffer to which the built message needs to be copied