T - The type of objects to serialize.public interface HttpStreamingDeserializer<T>
| Modifier and Type | Method and Description |
|---|---|
default BlockingIterable<T> |
deserialize(HttpHeaders headers,
BlockingIterable<Buffer> payload,
BufferAllocator allocator)
Deserialize a
BlockingIterable of Objects into a BlockingIterable of type T. |
Publisher<T> |
deserialize(HttpHeaders headers,
Publisher<Buffer> payload,
BufferAllocator allocator)
Deserialize a
Publisher of Objects into a Publisher of type T. |
Publisher<T> deserialize(HttpHeaders headers, Publisher<Buffer> payload, BufferAllocator allocator)
Publisher of Objects into a Publisher of type T.headers - The HttpHeaders associated with the payload.payload - Provides the Objects to deserialize.allocator - Used to allocate Buffers if necessary during deserialization.Publisher of type T which is the result of the deserialization.default BlockingIterable<T> deserialize(HttpHeaders headers, BlockingIterable<Buffer> payload, BufferAllocator allocator)
BlockingIterable of Objects into a BlockingIterable of type T.headers - The HttpHeaders associated with the payload.payload - Provides the Objects to deserialize. The contents are assumed to be in memory, otherwise
this method may block.allocator - Used to allocate Buffers if necessary during deserialization.BlockingIterable of type T which is the result of the deserialization.