public interface ByteEncoder extends Sink
ByteBuffer from each
received event. Then these buffer can be sent to an end-point using a
ByteEncoder.Transport.
This is a generic way to define the encoding of events into bytes buffer. The
main protocol used in GraphStream to do such things is NetStream, with is
dedicated encoder NetStreamEncoder.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ByteEncoder.Transport
Define the object that will be called after an event has been transformed
into a binary buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransport(ByteEncoder.Transport transport)
Add a new transport to this encoder.
|
void |
removeTransport(ByteEncoder.Transport transport)
Remove an existing transport from this encoder.
|
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemovededgeAdded, edgeRemoved, graphCleared, nodeAdded, nodeRemoved, stepBeginsvoid addTransport(ByteEncoder.Transport transport)
transport - the new transportvoid removeTransport(ByteEncoder.Transport transport)
transport - the transport to remove