Class FixedRateTask
java.lang.Object
org.springframework.scheduling.config.Task
org.springframework.scheduling.config.DelayedTask
org.springframework.scheduling.config.IntervalTask
org.springframework.scheduling.config.FixedRateTask
Specialization of 
IntervalTask for fixed-rate semantics.- Since:
- 5.0.2
- Author:
- Juergen Hoeller, Arjen Poutsma
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionFixedRateTask(Runnable runnable, long interval, long initialDelay) Deprecated.FixedRateTask(Runnable runnable, Duration interval, Duration initialDelay) Create a newFixedRateTask.
- 
Method SummaryMethods inherited from class org.springframework.scheduling.config.IntervalTaskgetInitialDelay, getInitialDelayDuration, getInterval, getIntervalDurationMethods inherited from class org.springframework.scheduling.config.TaskgetLastExecutionOutcome, getRunnable, toString
- 
Constructor Details- 
FixedRateTaskDeprecated.as of 6.0, in favor onFixedRateTask(Runnable, Duration, Duration)Create a newFixedRateTask.- Parameters:
- runnable- the underlying task to execute
- interval- how often in milliseconds the task should be executed
- initialDelay- the initial delay before first execution of the task
 
- 
FixedRateTask
 
- 
FixedRateTask(Runnable, Duration, Duration)