Package org.drasyl.handler.stream
Class LastMessageChunk
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- org.drasyl.handler.stream.MessageChunk
-
- org.drasyl.handler.stream.LastMessageChunk
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
public class LastMessageChunk extends MessageChunk
Represents the very last chunk of a message that is too large to be transmitted as a whole.- See Also:
MessageChunk
,ChunkedMessageInput
-
-
Constructor Summary
Constructors Constructor Description LastMessageChunk(byte msgId, int chunkNo, io.netty.buffer.ByteBuf content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LastMessageChunk
replace(io.netty.buffer.ByteBuf content)
String
toString()
-
Methods inherited from class org.drasyl.handler.stream.MessageChunk
chunkNo, equals, hashCode, msgId
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classMessageChunk
-
replace
public LastMessageChunk replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
replace
in classMessageChunk
-
-