Top Description Fields Methods
io.netty.util.internal

public Interface PriorityQueueNode

Known Direct Implementers
io.netty.util.concurrent.ScheduledFutureTask

Provides methods for DefaultPriorityQueue to maintain internal state. These methods should generally not be used outside the scope of DefaultPriorityQueue.

Field Summary

Modifier and TypeField and Description
public static final int
INDEX_NOT_IN_QUEUE

This should be used to initialize the storage returned by priorityQueueIndex(DefaultPriorityQueue).

Method Summary

Modifier and TypeMethod and Description
public int
priorityQueueIndex(DefaultPriorityQueue<?> queue)

Get the last value set by priorityQueueIndex(DefaultPriorityQueue, int) for the value corresponding to queue.

public void
priorityQueueIndex(DefaultPriorityQueue<?>
The queue for which the index is being set.
queue
,
int
The index as used by DefaultPriorityQueue.
i
)

Used by DefaultPriorityQueue to maintain state for an element in the queue.

Field Detail

INDEX_NOT_IN_QUEUEback to summary
public static final int INDEX_NOT_IN_QUEUE

This should be used to initialize the storage returned by priorityQueueIndex(DefaultPriorityQueue).

Method Detail

priorityQueueIndexback to summary
public int priorityQueueIndex(DefaultPriorityQueue<?> queue)

Get the last value set by priorityQueueIndex(DefaultPriorityQueue, int) for the value corresponding to queue.

Throwing exceptions from this method will result in undefined behavior.

priorityQueueIndexback to summary
public void priorityQueueIndex(DefaultPriorityQueue<?> queue, int i)

Used by DefaultPriorityQueue to maintain state for an element in the queue.

Throwing exceptions from this method will result in undefined behavior.

Parameters
queue:DefaultPriorityQueue<?>

The queue for which the index is being set.

i:int

The index as used by DefaultPriorityQueue.