|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.listenable.ExecutionList
public final class ExecutionList
A list of (Runnable, Executor) pairs that guarantees
that every Runnable that is added using the add method will be
executed in its associated Executor after run() is called.
Runnables added after run is called are still guaranteed to
execute.
| Constructor Summary | |
|---|---|
ExecutionList()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Runnable runnable,
java.util.concurrent.Executor executor)
Add the runnable/executor pair to the list of pairs to execute. |
void |
run()
Runs this execution list, executing all pairs in the order they were added. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionList()
| Method Detail |
|---|
public void add(java.lang.Runnable runnable,
java.util.concurrent.Executor executor)
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||