|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.util.WorkQueue
public class WorkQueue
Class WorkQueue is a thread-safe queue. This queue can be used in a producer-consumer scenario. Producers can add work to the queue. Consumers take work from the queue, possibly blocking until the queue has work added to it.
| Constructor Summary | |
|---|---|
WorkQueue()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
dequeueWork()
|
java.lang.Object |
dequeueWork(boolean block)
|
void |
enqueueWork(java.lang.Object o)
|
boolean |
isEmpty()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkQueue()
| Method Detail |
|---|
public void enqueueWork(java.lang.Object o)
public java.lang.Object dequeueWork()
public java.lang.Object dequeueWork(boolean block)
public boolean isEmpty()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||