public final class ExecutionList extends Object implements Runnable
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.
Runnable
s added after run
is called are still guaranteed to
execute.Constructor and Description |
---|
ExecutionList() |
Modifier and Type | Method and Description |
---|---|
void |
add(Runnable runnable,
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.
|
public void add(Runnable runnable, Executor executor)
runnable
- the runnable to be executed on completeexecutor
- teh executor to run the runnableCopyright © 2015. All Rights Reserved.