类 FixedRateTask


public class FixedRateTask extends IntervalTask
Specialization of IntervalTask for fixed-rate semantics.
从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 构造器详细资料

    • FixedRateTask

      public FixedRateTask(Runnable runnable, long interval, long initialDelay)
      Create a new FixedRateTask.
      参数:
      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

      public FixedRateTask(Runnable runnable, Duration interval, Duration initialDelay)
      Create a new FixedRateTask.
      参数:
      runnable - the underlying task to execute
      interval - how often the task should be executed
      initialDelay - the initial delay before first execution of the task