| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.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)
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 | ||||||