|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xact.analysis.concurrent.ExecutorTaskRunner
public class ExecutorTaskRunner
Adapter for ExecutorService to XactTaskRunner.
| Constructor Summary | |
|---|---|
ExecutorTaskRunner(ExecutorService service)
|
|
| Method Summary | |
|---|---|
void |
addTask(Runnable runnable)
Adds a tasks to the task scheduler. |
boolean |
maybeMultiThreaded()
Returns true if the scheduler might be multithreaded, or false if it is definitely not multithreaded. |
void |
runTasks()
Runs all scheduled tasks and returns when all have completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutorTaskRunner(ExecutorService service)
| Method Detail |
|---|
public void addTask(Runnable runnable)
XactTaskRunnerXactTaskRunner.runTasks().
addTask in interface XactTaskRunnerrunnable - the task to be executedpublic boolean maybeMultiThreaded()
XactTaskRunner
maybeMultiThreaded in interface XactTaskRunnerpublic void runTasks()
XactTaskRunner
runTasks in interface XactTaskRunner
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||