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