org.springframework.scheduling.config

## 类 TriggerTask

- java.lang.Object
- - org.springframework.scheduling.config.Task
  - - org.springframework.scheduling.config.TriggerTask

- 直接已知子类:
    CronTask

      public class TriggerTask
      extends Task

  `Task` implementation defining a `Runnable` to be executed according to a given `Trigger`.
  从以下版本开始:
    3.2
  作者:
    Chris Beams
  另请参阅:
    `ScheduledTaskRegistrar.addTriggerTask(TriggerTask)`, `TaskScheduler.schedule(Runnable, Trigger)`

- - ### 构造器概要

    构造器
    构造器和说明
    `TriggerTask(Runnable runnable, Trigger trigger)` Create a new `TriggerTask`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Trigger` | `getTrigger()` Return the associated trigger.

    - ### 从类继承的方法 org.springframework.scheduling.config.Task

      `getRunnable, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### TriggerTask

          public TriggerTask(Runnable runnable,
                             Trigger trigger)

      Create a new `TriggerTask`.
      参数:
        `runnable` - the underlying task to execute
        `trigger` - specifies when the task should be executed

  - ### 方法详细资料

    - #### getTrigger

          public Trigger getTrigger()

      Return the associated trigger.