|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A simple queue interface for Runnable objects.
This queue may decide the order with which a certain Runnable object
may be selected by implementing appropriately the get() method.
| Method Summary | |
java.lang.Runnable |
get()
Fetch a runnable object from the queue |
boolean |
isEmpty()
Return true if the queue is empty |
void |
put(java.lang.Runnable obj)
Add a runnable object to the queue |
int |
size()
Return the current size of the queue |
| Method Detail |
public void put(java.lang.Runnable obj)
obj - the runnable to be added to the queuepublic java.lang.Runnable get()
public int size()
public boolean isEmpty()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||