public class AWTTaskExecutor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addToExecute(java.lang.Runnable task)
Add the given
runnable to the list of planned executions. |
void |
execute()
Execute all the tasks that are waiting.
|
static AWTTaskExecutor |
getInstance()
Get the instance of the executor.
|
java.util.List<java.lang.Runnable> |
getWaitingTasks() |
public static AWTTaskExecutor getInstance()
public java.util.List<java.lang.Runnable> getWaitingTasks()
public void addToExecute(java.lang.Runnable task)
runnable
to the list of planned executions.task
- the task to add.execute()
public void execute()
addToExecute(Runnable)