public interface MessageDeSerializer
Modifier and Type | Method and Description |
---|---|
void |
build(java.lang.Object partialObject,
int edge)
Serilize a message
|
MessageHeader |
buildHeader(DataBuffer buffer,
int edge)
Read the header from the buffer
|
java.lang.Object |
getDataBuffers(java.lang.Object partialObject,
int edge)
Returns the data buffers for the given message.
|
void |
init(Config cfg)
Initialize the deserializer
|
void init(Config cfg)
cfg
- configurationvoid build(java.lang.Object partialObject, int edge)
partialObject
- the outmessageedge
- the edgeMessageHeader buildHeader(DataBuffer buffer, int edge)
buffer
- the buffer to readedge
- edgejava.lang.Object getDataBuffers(java.lang.Object partialObject, int edge)
partialObject
- object that contains the buffersedge
- id of the edge