Class OutgoingSegmentQueue

java.lang.Object
org.drasyl.handler.connection.OutgoingSegmentQueue

public class OutgoingSegmentQueue extends Object
Represents the outgoing segment queue that holds segments to be sent over a connection.

This class manages the queue of segments that are waiting to be sent over a connection. The queue implements a first-in, first-out (FIFO) ordering, where segments are added to the end of the queue and retrieved from the front of the queue. The queue is used by the sender to hold segments that are waiting to be sent to the receiver. Segments are added to the queue as they are generated by the application, and they are sent out by the sender according to the congestion control algorithm and the available network resources.

  • Method Details

    • flush

      public void flush(io.netty.channel.ChannelHandlerContext ctx, TransmissionControlBlock tcb)
    • size

      public int size()
      Returns the number of elements in this deque.
      Returns:
      the number of elements in this deque
    • isEmpty

      public boolean isEmpty()
      Returns true if this deque contains no elements.
      Returns:
      true if this deque contains no elements
    • toString

      public String toString()
      Overrides:
      toString in class Object