Class StopAndWaitArqData
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.arq.stopandwait.StopAndWaitArqData
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
,StopAndWaitArqMessage
public class StopAndWaitArqData
extends io.netty.buffer.DefaultByteBufHolder
implements StopAndWaitArqMessage
DATA message of the Stop-and-wait ARQ protocol.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, copy, duplicate, refCnt, release, release, retain, retain, retainedDuplicate, touch, touch
-
Constructor Details
-
StopAndWaitArqData
public StopAndWaitArqData(boolean sequenceNo, io.netty.buffer.ByteBuf content)
-
-
Method Details
-
toString
- Overrides:
toString
in classio.netty.buffer.DefaultByteBufHolder
-
sequenceNo
public boolean sequenceNo()- Specified by:
sequenceNo
in interfaceStopAndWaitArqMessage
- Returns:
- message's sequence number
-
replace
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
replace
in classio.netty.buffer.DefaultByteBufHolder
-
equals
- Overrides:
equals
in classio.netty.buffer.DefaultByteBufHolder
-
hashCode
public int hashCode()- Overrides:
hashCode
in classio.netty.buffer.DefaultByteBufHolder
-