|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.distributor.STE<T>
public class STE<T>
An STE distributes all jobs sequentially, that is, the recipients of jobs are always iterated one by one.
Field Summary | |
---|---|
protected boolean |
stopped
Is the thread stopped? |
Constructor Summary | |
---|---|
STE()
|
Method Summary | |
---|---|
void |
allow()
Restart the thread. |
void |
forEach(Sequence<T> to,
Task<T> task)
Iterate through the Enumeration and give the element the task. |
void |
iterate(Sequence<T> to,
Request<T> task)
Iterate through the Enumeration and give the element the task, if not already completed.. |
void |
stop()
Stop the thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean stopped
Constructor Detail |
---|
public STE()
Method Detail |
---|
public void forEach(Sequence<T> to, Task<T> task)
forEach
in interface Distributor<T>
to
- the Enumeration of recipientstask
- the taskpublic void iterate(Sequence<T> to, Request<T> task)
iterate
in interface Distributor<T>
to
- the Enumeration of recipientstask
- the taskpublic void stop()
stop
in interface Distributor<T>
public void allow()
allow
in interface Distributor<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |