| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.inca.util.WorkQueue
public class WorkQueue
| Constructor Summary | |
|---|---|
WorkQueue()
 | 
|
| Method Summary | |
|---|---|
 void | 
addWork(java.lang.Object o)
Add a task to the workQueue.  | 
 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 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.InterruptedExceptionpublic boolean isEmpty()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||