Class ChunkedMessageInput
- java.lang.Object
-
- org.drasyl.peer.connection.handler.stream.ChunkedMessageInput
-
- All Implemented Interfaces:
io.netty.handler.stream.ChunkedInput<ChunkedMessage>
public class ChunkedMessageInput extends Object implements io.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
-
Constructor Summary
Constructors Constructor Description ChunkedMessageInput(ApplicationMessage msg, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isEndOfInput()
long
length()
long
progress()
ChunkedMessage
readChunk(io.netty.buffer.ByteBufAllocator allocator)
ChunkedMessage
readChunk(io.netty.channel.ChannelHandlerContext ctx)
-
-
-
Constructor Detail
-
ChunkedMessageInput
public ChunkedMessageInput(ApplicationMessage msg, int chunkSize)
- Parameters:
msg
- the message that should be sent in chunks
-
-
Method Detail
-
isEndOfInput
public boolean isEndOfInput()
- Specified by:
isEndOfInput
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
close
public void close()
- Specified by:
close
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
readChunk
public ChunkedMessage readChunk(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
readChunk
public ChunkedMessage readChunk(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
length
public long length()
- Specified by:
length
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
progress
public long progress()
- Specified by:
progress
in interfaceio.netty.handler.stream.ChunkedInput<ChunkedMessage>
-
-