public class STE<T> extends Object implements Distributor<T>
| Constructor and Description |
|---|
STE() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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>Copyright © 2016 Egothor. All Rights Reserved.