|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.util.Terminator
public class Terminator
Terminating helper class. Like a barrier, but with coming and going.
| Constructor Summary | |
|---|---|
Terminator(int workers)
Terminator. |
|
| Method Summary | |
|---|---|
void |
allIdle()
allIdle. |
void |
beIdle()
beIdle. |
boolean |
hasJobs()
hasJobs. |
void |
notIdle()
notIdle. |
void |
waitDone()
wait done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Terminator(int workers)
workers - number of expected threads.| Method Detail |
|---|
public void beIdle()
public void allIdle()
public void notIdle()
public boolean hasJobs()
public void waitDone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||