public class BlockingPriorityQueue extends PriorityQueueRVM
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BlockingPriorityQueue.CallBackUsed to notify consumers when about to wait and when notified
 Default implementation does nothing, but can be overriden as needed by client. | 
| Modifier and Type | Field and Description | 
|---|---|
| (package private) BlockingPriorityQueue.CallBack | callback | 
| Constructor and Description | 
|---|
| BlockingPriorityQueue() | 
| BlockingPriorityQueue(BlockingPriorityQueue.CallBack _cb) | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | deleteMin()Remove and return the front (minimum) object. | 
| void | insert(double _priority,
      Object _data)Insert the object passed with the priority value passed. | 
isEmpty, numElements, rootValue, toStringBlockingPriorityQueue.CallBack callback
public BlockingPriorityQueue(BlockingPriorityQueue.CallBack _cb)
_cb - the callback objectpublic BlockingPriorityQueue()
public final void insert(double _priority, Object _data)
Notify any sleeping consumer threads that an object is available for consumption.
insert in class PriorityQueueRVM_priority - the priority to_data - the object to insertpublic final Object deleteMin()
deleteMin in class PriorityQueueRVM