Package org.drasyl.handler.stream
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
-
ClassDescriptionAggregates
MessageChunk
s to aReassembledMessage
.Wraps each chunk of the specifiedio.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
into a series of sortableMessageChunk
s, allowing the receiver to reassemble theByteBuf
in correct order.EncodesByteBuf
s exceedingLargeByteBufToChunkedMessageEncoder.maxChunkLength
toChunkedMessageInput
s.Represents the very last chunk of a message that is too large to be transmitted as a whole.Represents a chunk of a message that is too large to be transmitted as a whole.DecodesByteBuf
s with correct magic number toMessageChunk
s.EncodesMessageChunk
s toByteBuf
s.Buffers until allMessageChunk
s belonging to the same message have been collected, then passes them in the correct order.SpecialList
implementation which is used within ourMessageChunksBuffer
.Represents a message that has been reassembled fromMessageChunk
s.DecodesReassembledMessage
s toByteBuf
s.