类 ScheduledTask

java.lang.Object
cn.taketoday.scheduling.config.ScheduledTask

public final class ScheduledTask extends Object
A representation of a scheduled task at runtime, used as a return value for scheduling methods.
从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 方法详细资料

    • getTask

      public Task getTask()
      Return the underlying task (typically a CronTask, FixedRateTask or FixedDelayTask).
    • cancel

      public void cancel()
      Trigger cancellation of this scheduled task.

      This variant will force interruption of the task if still running.

      另请参阅:
    • cancel

      public void cancel(boolean mayInterruptIfRunning)
      Trigger cancellation of this scheduled task.
      参数:
      mayInterruptIfRunning - whether to force interruption of the task if still running (specify false to allow the task to complete)
      另请参阅:
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object