Package io.servicetalk.serializer.api
Interface StreamingDeserializer<T>
- Type Parameters:
T
- The type of objects that can be deserialized.
- All Known Subinterfaces:
StreamingSerializerDeserializer<T>
- All Known Implementing Classes:
FixedLengthStreamingSerializer
,VarIntLengthStreamingSerializer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(Publisher<Buffer> serializedData, BufferAllocator allocator) default BlockingIterable<T>
deserialize
(Iterable<Buffer> serializedData, BufferAllocator allocator)
-
Method Details
-
deserialize
- Parameters:
serializedData
- the serialized stream of data represented in aPublisher
ofBuffer
.allocator
- theBufferAllocator
to use if allocation is required.- Returns:
- The deserialized
Publisher
ofStreamingDeserializer
s.
-
deserialize
- Parameters:
serializedData
- the serialized stream data represented in aIterable
ofBuffer
.allocator
- theBufferAllocator
to use if allocation is required.- Returns:
- The deserialized
Iterable
ofStreamingDeserializer
s.
-