public interface PQEntry
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.
| 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
|