Class ChannelInboundBuffer

java.lang.Object
org.drasyl.channel.ChannelInboundBuffer

public final class ChannelInboundBuffer extends Object
(Transport implementors only) an internal data structure used by DrasylChannel to store its pending inbound read requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMessage(io.netty.buffer.ByteBuf msg)
     
    void
     
    boolean
    Returns true if there are no pending inbound read requests messages in this ChannelInboundBuffer or false otherwise.
    boolean
    Returns true if and only if the total number of pending bytes did not exceed the read watermark of the Channel.
    io.netty.buffer.ByteBuf
    Return the current message to read or null and removes it from the buffer or null if nothing is there to read.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addMessage

      public void addMessage(io.netty.buffer.ByteBuf msg)
    • isNotFull

      public boolean isNotFull()
      Returns true if and only if the total number of pending bytes did not exceed the read watermark of the Channel.
    • remove

      public io.netty.buffer.ByteBuf remove()
      Return the current message to read or null and removes it from the buffer or null if nothing is there to read.
    • isEmpty

      public boolean isEmpty()
      Returns true if there are no pending inbound read requests messages in this ChannelInboundBuffer or false otherwise.
    • close

      public void close()