|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.config.visualization.DelayTask
public class DelayTask
The DelayTask executes tasks immediately or delayed if they arrive
too close (delay). If they arrive way too close, older tasks will be dropped.
| Constructor Summary | |
|---|---|
DelayTask(long delay)
Constructs a DelayTask. |
|
DelayTask(long delay,
int priority)
Constructs a DelayTask with a given priority. |
|
| Method Summary | |
|---|---|
void |
execute(java.lang.Runnable task)
Executes the task. |
protected void |
finalize()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelayTask(long delay)
DelayTask.
delay - the minimum delay between two tasks
public DelayTask(long delay,
int priority)
DelayTask with a given priority.
delay - the minimum delay between two taskspriority - the priority of the executing thread| Method Detail |
|---|
public void execute(java.lang.Runnable task)
task - the task to be executed
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||