类 FixedRateTask
java.lang.Object
cn.taketoday.scheduling.config.Task
cn.taketoday.scheduling.config.IntervalTask
cn.taketoday.scheduling.config.FixedRateTask
Specialization of
IntervalTask for fixed-rate semantics.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器构造器说明FixedRateTask(Runnable runnable, long interval, long initialDelay) Create a newFixedRateTask.FixedRateTask(Runnable runnable, Duration interval, Duration initialDelay) Create a newFixedRateTask. -
方法概要
从类继承的方法 cn.taketoday.scheduling.config.IntervalTask
getInitialDelay, getInitialDelayDuration, getInterval, getIntervalDuration从类继承的方法 cn.taketoday.scheduling.config.Task
getRunnable, toString
-
构造器详细资料
-
FixedRateTask
Create a newFixedRateTask.- 参数:
runnable- the underlying task to executeinterval- how often in milliseconds the task should be executedinitialDelay- the initial delay before first execution of the task
-
FixedRateTask
Create a newFixedRateTask.- 参数:
runnable- the underlying task to executeinterval- how often the task should be executedinitialDelay- the initial delay before first execution of the task
-