- All Known Subinterfaces:
CDPQEntry, FIFOBandwidthLimiter.Request
- All Known Implementing Classes:
FIFOBandwidthLimiter.NoopRequest, FIFOBandwidthLimiter.SimpleRequest, 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 MethodsModifier and TypeMethodDescriptionintHigher is higher priority.longNeeded to ensure FIFO ordering within a single priority.voidsetSeqNum(long num) Set the sequence number for FIFO ordering.
Method Details
getPriority
int getPriority()Higher is higher priority.- Returns:
- the priority value
setSeqNum
void setSeqNum(long num) Set the sequence number for FIFO ordering.- Parameters:
num- the sequence number
getSeqNum
long getSeqNum()Needed to ensure FIFO ordering within a single priority.- Returns:
- the sequence number