## 类的使用
org.springframework.scheduling.config.TriggerTask

- 使用TriggerTask的程序包
  程序包 | 说明
  --- | ---
  org.springframework.scheduling.config | Support package for declarative scheduling configuration, with XML schema being the primary configuration format.

- - ### org.springframework.scheduling.config中TriggerTask的使用

    org.springframework.scheduling.config中TriggerTask的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `CronTask` `TriggerTask` implementation defining a `Runnable` to be executed according to a standard cron expression.

    返回变量类型为TriggerTask的类型的org.springframework.scheduling.config中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<TriggerTask>` | ScheduledTaskRegistrar.`getTriggerTaskList()` Get the trigger tasks as an unmodifiable list of `TriggerTask` objects.

    参数类型为TriggerTask的org.springframework.scheduling.config中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ScheduledTaskRegistrar.`addTriggerTask(TriggerTask task)` Add a `TriggerTask`.
    `ScheduledTask` | ScheduledTaskRegistrar.`scheduleTriggerTask(TriggerTask task)` Schedule the specified trigger task, either right away if possible or on initialization of the scheduler.

    类型变量类型为TriggerTask的org.springframework.scheduling.config中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ScheduledTaskRegistrar.`setTriggerTasksList(List<TriggerTask> triggerTasks)` Specify triggered tasks as a list of `TriggerTask` objects.