Package org.opt4j.viewer
Class DelayTask
java.lang.Object
org.opt4j.viewer.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
-
Method Summary
-
Constructor Details
-
DelayTask
public DelayTask(long delay) Constructs aDelayTask
.- Parameters:
delay
- the minimum delay between two tasks
-
DelayTask
public DelayTask(long delay, int priority) Constructs aDelayTask
with a given priority.- Parameters:
delay
- the minimum delay between two taskspriority
- the priority of the executing thread
-
-
Method Details