Package io.netty.util.internal
Interface PriorityQueueNode
- All Known Implementing Classes:
ScheduledFutureTask
,WeightedFairQueueByteDistributor.State
public interface PriorityQueueNode
Provides methods for
DefaultPriorityQueue
to maintain internal state. These methods should generally not be
used outside the scope of DefaultPriorityQueue
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
This should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue)
. -
Method Summary
Modifier and TypeMethodDescriptionint
priorityQueueIndex
(DefaultPriorityQueue<?> queue) Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)
for the value corresponding toqueue
.void
priorityQueueIndex
(DefaultPriorityQueue<?> queue, int i) Used byDefaultPriorityQueue
to maintain state for an element in the queue.
-
Field Details
-
INDEX_NOT_IN_QUEUE
static final int INDEX_NOT_IN_QUEUEThis should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue)
.- See Also:
-
-
Method Details
-
priorityQueueIndex
Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)
for the value corresponding toqueue
.Throwing exceptions from this method will result in undefined behavior.
-
priorityQueueIndex
Used byDefaultPriorityQueue
to maintain state for an element in the queue.Throwing exceptions from this method will result in undefined behavior.
- Parameters:
queue
- The queue for which the index is being set.i
- The index as used byDefaultPriorityQueue
.
-