Package org.drasyl.handler.arq.gobackn
Class GoBackNArqLastData
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.arq.gobackn.GoBackNArqData
org.drasyl.handler.arq.gobackn.GoBackNArqLastData
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
,GoBackNArqMessage
Last data message of the Go-Back-N ARQ protocol. This message enforces a timely ACK.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGoBackNArqLastData
(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
-
GoBackNArqLastData
-
-
Method Details
-
toString
- Overrides:
toString
in classGoBackNArqData
-
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
-