Package io.netty.util.internal
Interface PriorityQueueNode
-
public interface PriorityQueueNodeProvides methods forDefaultPriorityQueueto maintain internal state. These methods should generally not be used outside the scope ofDefaultPriorityQueue.
-
-
Field Summary
Fields Modifier and Type Field Description static intINDEX_NOT_IN_QUEUEThis should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intpriorityQueueIndex(DefaultPriorityQueue<?> queue)Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)for the value corresponding toqueue.voidpriorityQueueIndex(DefaultPriorityQueue<?> queue, int i)Used byDefaultPriorityQueueto maintain state for an element in the queue.
-
-
-
Field Detail
-
INDEX_NOT_IN_QUEUE
static final int INDEX_NOT_IN_QUEUE
This should be used to initialize the storage returned bypriorityQueueIndex(DefaultPriorityQueue).- See Also:
- Constant Field Values
-
-
Method Detail
-
priorityQueueIndex
int priorityQueueIndex(DefaultPriorityQueue<?> queue)
Get the last value set bypriorityQueueIndex(DefaultPriorityQueue, int)for the value corresponding toqueue.Throwing exceptions from this method will result in undefined behavior.
-
priorityQueueIndex
void priorityQueueIndex(DefaultPriorityQueue<?> queue, int i)
Used byDefaultPriorityQueueto 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.
-
-