Class FixedRateTask


public class FixedRateTask extends IntervalTask
Specialization of IntervalTask for fixed-rate semantics.
Since:
5.0.2
Author:
Juergen Hoeller, Arjen Poutsma
See Also:
  • Constructor Details

    • FixedRateTask

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

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