org.apache.tomcat.util.collections
public class Queue extends Object
Deprecated:
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.Method Summary | |
---|---|
Object | get()
Get the first object out of the queue. |
boolean | isEmpty()
Is the queue empty? |
Object | peek()
Peek to see if something is available. |
Object | pull()
Pull the first object out of the queue. |
void | put(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 |
Parameters: object the object to be appended to the queue.