Top Methods
io.netty.util.internal

public Interface PriorityQueue<T>

extends Queue<T>
Known Direct Implementers
io.netty.util.internal.DefaultPriorityQueue, io.netty.util.internal.EmptyPriorityQueue
Imports
java.util.Queue

Method Summary

Modifier and TypeMethod and Description
public void
clearIgnoringIndexes()

Removes all of the elements from this PriorityQueue without calling PriorityQueueNode#priorityQueueIndex(DefaultPriorityQueue) or explicitly removing references to them to allow them to be garbage collected.

public boolean
containsTyped(T node)

Same as contains(Object) but typed using generics.

public void
priorityChanged(T
An object which is in this queue and the priority may have changed.
node
)

Notify the queue that the priority for node has changed.

public boolean
removeTyped(T node)

Same as remove(Object) but typed using generics.

Inherited from java.util.Queue:
addelementofferpeekpollremove

Method Detail

clearIgnoringIndexesback to summary
public void clearIgnoringIndexes()

Removes all of the elements from this PriorityQueue without calling PriorityQueueNode#priorityQueueIndex(DefaultPriorityQueue) or explicitly removing references to them to allow them to be garbage collected. This should only be used when it is certain that the nodes will not be re-inserted into this or any other PriorityQueue and it is known that the PriorityQueue itself will be garbage collected after this call.

containsTypedback to summary
public boolean containsTyped(T node)

Same as contains(Object) but typed using generics.

priorityChangedback to summary
public void priorityChanged(T node)

Notify the queue that the priority for node has changed. The queue will adjust to ensure the priority queue properties are maintained.

Parameters
node:T

An object which is in this queue and the priority may have changed.

removeTypedback to summary
public boolean removeTyped(T node)

Same as remove(Object) but typed using generics.