Package org.drasyl.handler.arq.gobackn
Class GoBackNArqData
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.arq.gobackn.GoBackNArqData
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
,GoBackNArqMessage
public class GoBackNArqData
extends io.netty.buffer.DefaultByteBufHolder
implements GoBackNArqMessage
Data message of the Go-Back-N ARQ protocol.
-
Constructor Summary
ConstructorDescriptionGoBackNArqData
(io.netty.buffer.ByteBuf content) GoBackNArqData
(UnsignedInteger sequenceNo, io.netty.buffer.ByteBuf content) -
Method Summary
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, copy, duplicate, refCnt, release, release, replace, retain, retain, retainedDuplicate, touch, touch
-
Constructor Details
-
GoBackNArqData
public GoBackNArqData(io.netty.buffer.ByteBuf content) -
GoBackNArqData
-
-
Method Details
-
sequenceNo
- Specified by:
sequenceNo
in interfaceGoBackNArqMessage
- Returns:
- message's sequence number
-
toString
- Overrides:
toString
in classio.netty.buffer.DefaultByteBufHolder
-
equals
- Overrides:
equals
in classio.netty.buffer.DefaultByteBufHolder
-
hashCode
public int hashCode()- Overrides:
hashCode
in classio.netty.buffer.DefaultByteBufHolder
-