Class OneTimeTask


public class OneTimeTask extends DelayedTask
Task implementation defining a Runnable with an initial delay.
Since:
6.1
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • OneTimeTask

      public OneTimeTask(Runnable runnable, Duration initialDelay)
      Create a new DelayedTask.
      Parameters:
      runnable - the underlying task to execute
      initialDelay - the initial delay before execution of the task