net.i2p.router.util

## Interface PQEntry

- All Known Subinterfaces:
    CDPQEntry, FIFOBandwidthLimiter.Request
  All Known Implementing Classes:
    OutboundGatewayMessage, OutboundMessageState, OutNetMessage, UDPPacket

      public interface PQEntry

  Interface for priority queue entries with sequence tracking.

  Defines the contract for elements stored in priority-based blocking queues. Provides methods for accessing priority levels and sequence numbers to ensure proper FIFO ordering within same priority levels.

  Used by PriBlockingQueue and CoDelPriorityBlockingQueue to maintain insertion order while supporting priority-based selection and removal operations.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPriority()` Higher is higher priority
    `long` | `getSeqNum()` Needed to ensure FIFO ordering within a single priority
    `void` | `setSeqNum(long num)` To be set by the queue

- - ### Method Detail

    - #### getPriority

          int getPriority()

      Higher is higher priority

    - #### getSeqNum

          long getSeqNum()

      Needed to ensure FIFO ordering within a single priority

    - #### setSeqNum

          void setSeqNum(long num)

      To be set by the queue