|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.analysis.concurrent.SingleThreadedTaskRunner
public class SingleThreadedTaskRunner
Runs all tasks in the calling thread.
Constructor Summary | |
---|---|
SingleThreadedTaskRunner()
|
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 SingleThreadedTaskRunner()
Method Detail |
---|
public void addTask(Runnable runnable)
XactTaskRunner
XactTaskRunner.runTasks()
.
addTask
in interface XactTaskRunner
runnable
- the task to be executedpublic boolean maybeMultiThreaded()
XactTaskRunner
maybeMultiThreaded
in interface XactTaskRunner
public void runTasks()
XactTaskRunner
runTasks
in interface XactTaskRunner
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |