devutil
Class Queue

java.lang.Object
  extended bydevutil.Queue
All Implemented Interfaces:
java.io.Serializable

public class Queue
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.util.Vector queue
           
private  java.lang.Object removalLock
           
 
Constructor Summary
Queue()
           
 
Method Summary
 void add(java.lang.Object item)
           
 java.util.Enumeration elements()
           
 boolean isEmpty()
           
 java.lang.Object remove()
           
 void removeElement(java.lang.Object item)
           
 java.lang.Object removeNB()
          Throws NoSuchElementException if the queue is empty.
 int size()
           
 void waitOnEmpty()
           
 void waitUntilEmpty()
          It blocks until the queue is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private java.util.Vector queue

removalLock

private java.lang.Object removalLock
Constructor Detail

Queue

public Queue()
Method Detail

remove

public java.lang.Object remove()

add

public void add(java.lang.Object item)

removeNB

public java.lang.Object removeNB()
Throws NoSuchElementException if the queue is empty.


waitUntilEmpty

public void waitUntilEmpty()
It blocks until the queue is empty.


waitOnEmpty

public void waitOnEmpty()

removeElement

public void removeElement(java.lang.Object item)

elements

public java.util.Enumeration elements()

isEmpty

public boolean isEmpty()

size

public int size()