org.springframework.scheduling.support

## 类 CronTrigger

- java.lang.Object
- - org.springframework.scheduling.support.CronTrigger

- 所有已实现的接口:
    Trigger

      public class CronTrigger
      extends Object
      implements Trigger

  `Trigger` implementation for cron expressions. Wraps a `CronSequenceGenerator`.
  从以下版本开始:
    3.0
  作者:
    Juergen Hoeller
  另请参阅:
    `CronSequenceGenerator`

- - ### 构造器概要

    构造器
    构造器和说明
    `CronTrigger(String expression)` Build a `CronTrigger` from the pattern provided in the default time zone.
    `CronTrigger(String expression, TimeZone timeZone)` Build a `CronTrigger` from the pattern provided in the given time zone.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `String` | `getExpression()` Return the cron pattern that this trigger has been built with.
    `int` | `hashCode()`
    `Date` | `nextExecutionTime(TriggerContext triggerContext)` Determine the next execution time according to the given trigger context.
    `String` | `toString()`

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

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

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

    - #### CronTrigger

          public CronTrigger(String expression)

      Build a `CronTrigger` from the pattern provided in the default time zone.
      参数:
        `expression` - a space-separated list of time fields, following cron expression conventions

    - #### CronTrigger

          public CronTrigger(String expression,
                             TimeZone timeZone)

      Build a `CronTrigger` from the pattern provided in the given time zone.
      参数:
        `expression` - a space-separated list of time fields, following cron expression conventions
        `timeZone` - a time zone in which the trigger times will be generated

  - ### 方法详细资料

    - #### getExpression

          public String getExpression()

      Return the cron pattern that this trigger has been built with.

    - #### nextExecutionTime

          public Date nextExecutionTime(TriggerContext triggerContext)

      Determine the next execution time according to the given trigger context.

      Next execution times are calculated based on the completion time of the previous execution; therefore, overlapping executions won't occur.

      指定者:
        `nextExecutionTime` 在接口中 `Trigger`
      参数:
        `triggerContext` - context object encapsulating last execution times and last completion time
      返回:
        the next execution time as defined by the trigger, or `null` if the trigger won't fire anymore

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`