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 StreamingSerializer
A contract capable of serializing a stream ofObject
s into a stream ofBuffer
s. This interface is designed to be used as a function that can convert anObject
into aBuffer
.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
serialize(java.lang.Object toSerialize, Buffer destination)
-