|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.util.WorkQueue
public class WorkQueue
Constructor Summary | |
---|---|
WorkQueue()
|
Method Summary | |
---|---|
void |
addWork(java.lang.Object o)
Add a task to the workQueue. |
void |
clear()
Clear the queue of all work |
java.lang.Object |
getWork()
retrieve work from the workQueue. |
boolean |
isEmpty()
check to see if there is any work to be done. |
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 clear()
public void addWork(java.lang.Object o)
o
- Object that is the work to be added ( should be a socket )public java.lang.Object getWork() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |