Package org.drasyl.handler.stream
Class ChunkedMessageInput
java.lang.Object
org.drasyl.handler.stream.ChunkedMessageInput
- All Implemented Interfaces:
io.netty.handler.stream.ChunkedInput<MessageChunk>
@Deprecated
public class ChunkedMessageInput
extends Object
implements io.netty.handler.stream.ChunkedInput<MessageChunk>
Deprecated.
Wraps each chunk of the specified
io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>
into a series of sortable MessageChunk
s, allowing the receiver to reassemble the ByteBuf
in correct order. Useful
for protocols that does provide message ordering (like UDP
or drasyl).
ChannelPipeline
p = ...; ... p.addLast("encoder", newMessageChunkEncoder
()); p.addLast("chunked_write", newChunkedWriteHandler
); p.addLast("decoder", newMessageChunkDecoder
()); p.addLast("buffer", newMessageChunksBuffer
(65536, 5000)); p.addLast("aggregator", newChunkedMessageAggregator
(65536)); ... p.addLast("handler", new MyReassembledMessageHandler());
-
Constructor Summary
ConstructorDescriptionChunkedMessageInput
(io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf> input) Deprecated. -
Method Summary
-
Constructor Details
-
ChunkedMessageInput
public ChunkedMessageInput(io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf> input) Deprecated.
-
-
Method Details
-
isEndOfInput
Deprecated.- Specified by:
isEndOfInput
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
- Throws:
Exception
-
close
Deprecated.- Specified by:
close
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
- Throws:
Exception
-
readChunk
Deprecated.- Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
- Throws:
Exception
-
readChunk
Deprecated.- Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
- Throws:
Exception
-
length
public long length()Deprecated.- Specified by:
length
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
-
progress
public long progress()Deprecated.- Specified by:
progress
in interfaceio.netty.handler.stream.ChunkedInput<MessageChunk>
-