|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaskScheduler
Generic task scheduler interface.
| Method Summary | |
|---|---|
void |
invokeAndWait(java.lang.Runnable runnable)
Enqueues a task on the scheduler's thread and waits for its completion. |
void |
invokeLater(java.lang.Runnable task,
int priority)
Enqueues a task on the scheduler's thread. |
void |
waitForAll()
Waits for all tasks to finish. |
| Method Detail |
|---|
void invokeLater(java.lang.Runnable task,
int priority)
task - the taskpriority - lower number means higher prioritywaitForAll()
void invokeAndWait(java.lang.Runnable runnable)
throws java.lang.InterruptedException,
java.lang.reflect.InvocationTargetException
runnable - the task
java.lang.InterruptedException - if another thread has
interrupted the task thread
java.lang.reflect.InvocationTargetException - if an throwable is thrown
when running runnableinvokeLater(Runnable, int),
waitForAll()
void waitForAll()
throws java.lang.InterruptedException
java.lang.InterruptedException - if another thread has
interrupted the task threadinvokeLater(Runnable, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||