@FunctionalInterface
public interface StreamingSerializer
Objects into a stream of Buffers.
This interface is designed to be used as a function that can convert an Object into a Buffer.
serialize(Object, Buffer) maybe called multiple times.
A StreamingSerializer implementation may chose to be stateful or stateless. This contract does not assume
either.
Implementations are assumed to be synchronous.
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(java.lang.Object toSerialize,
Buffer destination)
|