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
Deprecated.
Represents the very last chunk of a message that is too large to be transmitted as a whole.
- See Also:
-
Constructor Summary
ConstructorDescriptionLastMessageChunk
(byte msgId, int chunkNo, io.netty.buffer.ByteBuf content) Deprecated. -
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) Deprecated.- 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
Deprecated.- Overrides:
toString
in classMessageChunk
-
replace
Deprecated.- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
replace
in classMessageChunk
-