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 Details

    • StopAndWaitArqData

      public StopAndWaitArqData(boolean sequenceNo, io.netty.buffer.ByteBuf content)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class io.netty.buffer.DefaultByteBufHolder
    • sequenceNo

      public boolean sequenceNo()
      Specified by:
      sequenceNo in interface StopAndWaitArqMessage
      Returns:
      message's sequence number
    • replace

      public StopAndWaitArqData replace(io.netty.buffer.ByteBuf content)
      Specified by:
      replace in interface io.netty.buffer.ByteBufHolder
      Overrides:
      replace in class io.netty.buffer.DefaultByteBufHolder
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class io.netty.buffer.DefaultByteBufHolder
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class io.netty.buffer.DefaultByteBufHolder