## 接口的使用
org.springframework.scheduling.Trigger

- 使用Trigger的程序包
  程序包 | 说明
  --- | ---
  org.springframework.scheduling | General exceptions for Spring's scheduling support, independent of any specific scheduling system.
  org.springframework.scheduling.concurrent | Scheduling convenience classes for the `java.util.concurrent` and `javax.enterprise.concurrent` packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.
  org.springframework.scheduling.config | Support package for declarative scheduling configuration, with XML schema being the primary configuration format.
  org.springframework.scheduling.support | Generic support classes for scheduling.

- - ### org.springframework.scheduling中Trigger的使用

    参数类型为Trigger的org.springframework.scheduling中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ScheduledFuture<?>` | TaskScheduler.`schedule(Runnable task, Trigger trigger)` Schedule the given `Runnable`, invoking it whenever the trigger indicates a next execution time.

  - ### org.springframework.scheduling.concurrent中Trigger的使用

    参数类型为Trigger的org.springframework.scheduling.concurrent中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ScheduledFuture<?>` | ConcurrentTaskScheduler.`schedule(Runnable task, Trigger trigger)`
    `ScheduledFuture<?>` | ThreadPoolTaskScheduler.`schedule(Runnable task, Trigger trigger)`

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

    返回Trigger的org.springframework.scheduling.config中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Trigger` | TriggerTask.`getTrigger()` Return the associated trigger.

    参数类型为Trigger的org.springframework.scheduling.config中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ScheduledTaskRegistrar.`addTriggerTask(Runnable task, Trigger trigger)` Add a Runnable task to be triggered per the given `Trigger`.

    类型变量类型为Trigger的org.springframework.scheduling.config中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ScheduledTaskRegistrar.`setTriggerTasks(Map<Runnable,Trigger> triggerTasks)` Specify triggered tasks as a Map of Runnables (the tasks) and Trigger objects (typically custom implementations of the `Trigger` interface).

    参数类型为Trigger的org.springframework.scheduling.config中的构造器
    构造器和说明
    `TriggerTask(Runnable runnable, Trigger trigger)` Create a new `TriggerTask`.

  - ### org.springframework.scheduling.support中Trigger的使用

    实现Trigger的org.springframework.scheduling.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `CronTrigger` `Trigger` implementation for cron expressions.
    `class` | `PeriodicTrigger` A trigger for periodic task execution.