public class FixedDelayTask extends IntervalTask
IntervalTask
for fixed-delay semantics.Scheduled.fixedDelay()
,
ScheduledTaskRegistrar.addFixedDelayTask(IntervalTask)
Constructor and Description |
---|
FixedDelayTask(Runnable runnable,
long interval,
long initialDelay)
Create a new
FixedDelayTask . |
getInitialDelay, getInterval
getRunnable, toString
public FixedDelayTask(Runnable runnable, long interval, long initialDelay)
FixedDelayTask
.runnable
- the underlying task to executeinterval
- how often in milliseconds the task should be executedinitialDelay
- the initial delay before first execution of the task