public static class BinaryHeapQueue.Synchronized extends BinaryHeapQueue
BinaryHeapQueue.Synchronizedlog| Constructor and Description |
|---|
Synchronized() |
Synchronized(Comparator<Activation> comparator) |
Synchronized(Comparator<Activation> comparator,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all elements from queue.
|
Activation |
dequeue()
Returns the Queueable on top of heap and remove it.
|
Activation |
dequeue(Activation activation) |
void |
enqueue(Activation element)
Inserts an Queueable into queue.
|
Activation[] |
getAndClear() |
boolean |
isEmpty()
Tests if queue is empty.
|
boolean |
isFull()
Tests if queue is full.
|
Activation |
peek() |
int |
size()
Returns the number of elements in this heap.
|
Object[] |
toArray(Object[] a) |
percolateDownMaxHeap, percolateUpMaxHeap, percolateUpMaxHeap, readExternal, toString, writeExternalpublic Synchronized()
public Synchronized(Comparator<Activation> comparator)
public Synchronized(Comparator<Activation> comparator, int capacity)
public void clear()
BinaryHeapQueueclear in class BinaryHeapQueuepublic Activation[] getAndClear()
getAndClear in class BinaryHeapQueuepublic boolean isEmpty()
BinaryHeapQueueisEmpty in interface QueueisEmpty in class BinaryHeapQueuetrue if queue is empty; false
otherwise.public boolean isFull()
BinaryHeapQueueisFull in class BinaryHeapQueuetrue if queue is full; false
otherwise.public int size()
BinaryHeapQueuesize in class BinaryHeapQueuepublic Activation peek()
peek in class BinaryHeapQueuepublic void enqueue(Activation element)
BinaryHeapQueueenqueue in interface Queueenqueue in class BinaryHeapQueueelement - the Queueable to be insertedpublic Activation dequeue()
BinaryHeapQueuedequeue in interface Queuedequeue in class BinaryHeapQueuepublic Activation dequeue(Activation activation)
dequeue in interface Queuedequeue in class BinaryHeapQueuepublic Object[] toArray(Object[] a)
toArray in class BinaryHeapQueueCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.