public interface MessageSerializer
Modifier and Type | Method and Description |
---|---|
ChannelMessage |
build(java.lang.Object message,
java.lang.Object partialBuildObject)
This method will be called repeatedly until the message is fully built
|
void |
init(Config cfg,
java.util.Queue<DataBuffer> sendBuffs)
Initialize the serializer, it should use the sendBuffs queue to pick a network buffer
|
void init(Config cfg, java.util.Queue<DataBuffer> sendBuffs)
cfg
- configurationsendBuffs
- the send buffer qeueChannelMessage build(java.lang.Object message, java.lang.Object partialBuildObject)
message
- message to serializepartialBuildObject
- the out message to serialize