public class SubRunner extends Object
Constructor and Description |
---|
SubRunner()
Start a new sub-runner.
|
SubRunner(String name)
Start a new, named sub-runner.
|
Modifier and Type | Method and Description |
---|---|
void |
enqueue(Callable<Object> task,
ArgRunnable resultee)
Enqueue a task for execution.
|
void |
shutdown()
Shut down this sub-runner's run queue.
|
public SubRunner()
public SubRunner(String name)
public void enqueue(Callable<Object> task, ArgRunnable resultee)
task
- Callable that will perform the desired task; runs in this
SubRunner's run queue.resultee
- ResultThank that will be given the result from running
'task'; runs in the run queue of the thread that created this
SubRunner.public void shutdown()
Copyright © 2017. All rights reserved.