Class MessageChunk

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.stream.MessageChunk
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted
Direct Known Subclasses:
LastMessageChunk

@Deprecated public class MessageChunk extends io.netty.buffer.DefaultByteBufHolder
Deprecated.
Represents a chunk of a message that is too large to be transmitted as a whole.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    MessageChunk(byte msgId, int chunkNo, io.netty.buffer.ByteBuf content)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
     
    boolean
    Deprecated.
     
    int
    Deprecated.
     
    byte
    Deprecated.
     
    replace(io.netty.buffer.ByteBuf content)
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class io.netty.buffer.DefaultByteBufHolder

    content, contentToString, copy, duplicate, refCnt, release, release, retain, retain, retainedDuplicate, touch, touch

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MessageChunk

      public MessageChunk(byte msgId, int chunkNo, io.netty.buffer.ByteBuf content)
      Deprecated.
      Parameters:
      msgId - id of the message to which this chunk belongs
      chunkNo - number of this chunk (starting with 0)
      content - message's content portion of this chunk
  • Method Details

    • toString

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

      public byte msgId()
      Deprecated.
      Returns:
      id of the message to which this chunk belongs
    • chunkNo

      public int chunkNo()
      Deprecated.
      Returns:
      number of this chunk (starting with 0)
    • replace

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

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

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