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
Represents the very last chunk of a message that is too large to be transmitted as a whole.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.drasyl.handler.stream.MessageChunk
chunkNo, equals, hashCode, msgId
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, copy, duplicate, refCnt, release, release, retain, retain, retainedDuplicate, touch, touch
-
Constructor Details
-
LastMessageChunk
public LastMessageChunk(byte msgId, int chunkNo, io.netty.buffer.ByteBuf content) - Parameters:
msgId
- id of the message to which this chunk belongschunkNo
- number of this chunk (starting with0
)content
- message's content portion of this chunk
-
-
Method Details
-
toString
- Overrides:
toString
in classMessageChunk
-
replace
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
replace
in classMessageChunk
-