Package org.drasyl.handler.stream
Codecs, Channel Handlers, and Messages for sending large data streams asynchronously neither
spending a lot of memory nor getting
OutOfMemoryError
-
Class Summary Class Description ChunkedMessageAggregator AggregatesMessageChunk
s to aReassembledMessage
.ChunkedMessageInput Wraps each chunk of the specifiedChunkedInput
into a series of sortableMessageChunk
s, allowing the receiver to reassemble theByteBuf
in correct order.LargeByteBufToChunkedMessageEncoder EncodesByteBuf
s exceedingLargeByteBufToChunkedMessageEncoder.maxChunkLength
toChunkedMessageInput
s.LastMessageChunk Represents the very last chunk of a message that is too large to be transmitted as a whole.MessageChunk Represents a chunk of a message that is too large to be transmitted as a whole.MessageChunkDecoder DecodesByteBuf
s with correct magic number toMessageChunk
s.MessageChunkEncoder EncodesMessageChunk
s toByteBuf
s.MessageChunksBuffer Buffers until allMessageChunk
s belonging to the same message have been collected, then passes them in the correct order.MessageChunksBufferInputList SpecialList
implementation which is used within ourMessageChunksBuffer
.ReassembledMessage Represents a message that has been reassembled fromMessageChunk
s.ReassembledMessageDecoder DecodesReassembledMessage
s toByteBuf
s.