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 aPublisherofBuffer.allocator- theBufferAllocatorto use if allocation is required.- Returns:
- The deserialized
PublisherofStreamingDeserializers.
-
deserialize
- Parameters:
serializedData- the serialized stream data represented in aIterableofBuffer.allocator- theBufferAllocatorto use if allocation is required.- Returns:
- The deserialized
IterableofStreamingDeserializers.
-