Class PriBlockingQueue<E extends PQEntry>

All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>
Direct Known Subclasses:
CoDelPriorityBlockingQueue

public class PriBlockingQueue<E extends PQEntry> extends PriorityBlockingQueue<E>
Priority Blocking Queue using methods in the entries, as defined in PQEntry, to store priority and sequence number, ensuring FIFO order within a priority. Input: add(), offer(), and put() are overridden to add a sequence number.
Since:
0.9.3
See Also:
  • Field Details

    • _context

      protected final transient I2PAppContext _context
    • _log

      protected final transient Log _log
    • _name

      protected final String _name
    • RATES

      protected static final long[] RATES
    • BACKLOG_SIZE

      protected static final int BACKLOG_SIZE
      See Also:
    • MAX_SIZE

      protected static final int MAX_SIZE
      See Also:
  • Constructor Details

    • PriBlockingQueue

      public PriBlockingQueue(I2PAppContext ctx, String name, int initialCapacity)
      Bounded queue with a hardcoded failsafe max size, except when using put(), which is unbounded.
  • Method Details