| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tomcat.util.collections.Queue
A simple FIFO queue class which causes the calling thread to wait if the queue is empty and notifies threads that are waiting when it is not empty.
| Constructor Summary | |
Queue()
 | 
|
| Method Summary | |
 java.lang.Object | 
get()
Get the first object out of the queue.  | 
 boolean | 
isEmpty()
Is the queue empty?  | 
 java.lang.Object | 
peek()
Peek to see if something is available.  | 
 java.lang.Object | 
pull()
Pull the first object out of the queue.  | 
 void | 
put(java.lang.Object object)
Put the object into the queue.  | 
 int | 
size()
How many elements are there in this queue?  | 
 void | 
stop()
Break the pull(), allowing the calling thread to exit  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Queue()
| Method Detail | 
public void put(java.lang.Object object)
object - the object to be appended to the
 				queue.public void stop()
public java.lang.Object pull()
public java.lang.Object get()
public java.lang.Object peek()
public boolean isEmpty()
public int size()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||