cc.glsn.v15
Class PriorityQueue<K extends Comparable,E>

java.lang.Object
  extended by cc.glsn.v15.PriorityQueue<K,E>

public class PriorityQueue<K extends Comparable,E>
extends Object

A Thread Safe FIFO queue with priority. Lowest priority comes out first if equal priority, then behavior is FIFo


Constructor Summary
PriorityQueue()
           
 
Method Summary
 LinkedList<E> copyList()
           
 E get()
           
 E getBlocking()
           
 E getBlocking(long MaxWait)
           
 E peek()
           
 void printPriList()
           
 void put(E O, K Priority)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityQueue

public PriorityQueue()
Method Detail

size

public int size()

peek

public E peek()

get

public E get()

printPriList

public void printPriList()

put

public void put(E O,
                K Priority)

getBlocking

public E getBlocking(long MaxWait)

getBlocking

public E getBlocking()

copyList

public LinkedList<E> copyList()