Package io.servicetalk.serialization.api
Interface StreamingSerializer
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StreamingSerializerA contract capable of serializing a stream ofObjects into a stream ofBuffers. This interface is designed to be used as a function that can convert anObjectinto aBuffer.serialize(Object, Buffer)maybe called multiple times.A
StreamingSerializerimplementation may chose to be stateful or stateless. This contract does not assume either. Implementations are assumed to be synchronous.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserialize(java.lang.Object toSerialize, Buffer destination)
-