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
- Direct Known Subclasses:
GoBackNArqLastData
public class GoBackNArqData
extends io.netty.buffer.DefaultByteBufHolder
Data message of the Go-Back-N ARQ protocol.
-
Field Summary
-
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
-
Field Details
-
sequenceNo
-
-
Constructor Details
-
GoBackNArqData
public GoBackNArqData(io.netty.buffer.ByteBuf content) -
GoBackNArqData
-
-
Method Details
-
toString
-
sequenceNo
- Specified by:
sequenceNo
in interfaceGoBackNArqMessage
- Returns:
- message's sequence number
-
equals
- Overrides:
equals
in classio.netty.buffer.DefaultByteBufHolder
-
hashCode
public int hashCode()- Overrides:
hashCode
in classio.netty.buffer.DefaultByteBufHolder
-