|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.java.util.SimpleQueue
Implements single queue.
Extremely simplified queue implementation, cut to fit into the background logging.
Field Summary | |
private java.util.Vector |
theQueue
Data holder. |
Constructor Summary | |
SimpleQueue()
Default constructor. |
Method Summary | |
java.lang.Object |
get()
Get the object waiting in the queue. |
boolean |
isEmpty()
Find out if the queue is empty. |
java.lang.Object |
peekAtHead()
Get the object at the head of the queue. |
void |
put(java.lang.Object toPut)
Put the object into the queue. |
int |
size()
Get the number of elements in the queue. |
java.lang.Object |
waitObject()
Wait until the object appears in the queue, then return it. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector theQueue
Constructor Detail |
public SimpleQueue()
Method Detail |
public void put(java.lang.Object toPut)
toPut
- the object to putpublic java.lang.Object get()
public java.lang.Object waitObject() throws java.lang.InterruptedException
get()
public java.lang.Object peekAtHead()
public boolean isEmpty()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |