public interface PQEntryDefines 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.
| 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)Set the sequence number for FIFO ordering. |
int getPriority()
long getSeqNum()
void setSeqNum(long num)
num - the sequence number