Package io.netty.util.internal
Interface PriorityQueue<T>
- 
- All Superinterfaces:
- java.util.Collection<T>,- java.lang.Iterable<T>,- java.util.Queue<T>
 - All Known Implementing Classes:
- DefaultPriorityQueue,- EmptyPriorityQueue
 
 public interface PriorityQueue<T> extends java.util.Queue<T>
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearIgnoringIndexes()Removes all of the elements from thisPriorityQueuewithout callingPriorityQueueNode.priorityQueueIndex(DefaultPriorityQueue)or explicitly removing references to them to allow them to be garbage collected.booleancontainsTyped(T node)Same asCollection.contains(Object)but typed using generics.voidpriorityChanged(T node)Notify the queue that the priority fornodehas changed.booleanremoveTyped(T node)Same asCollection.remove(Object)but typed using generics.
 
- 
- 
- 
Method Detail- 
removeTypedboolean removeTyped(T node) Same asCollection.remove(Object)but typed using generics.
 - 
containsTypedboolean containsTyped(T node) Same asCollection.contains(Object)but typed using generics.
 - 
priorityChangedvoid priorityChanged(T node) Notify the queue that the priority fornodehas changed. The queue will adjust to ensure the priority queue properties are maintained.- Parameters:
- node- An object which is in this queue and the priority may have changed.
 
 - 
clearIgnoringIndexesvoid clearIgnoringIndexes() Removes all of the elements from thisPriorityQueuewithout callingPriorityQueueNode.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 otherPriorityQueueand it is known that thePriorityQueueitself will be garbage collected after this call.
 
- 
 
-