org.springframework.scheduling.support

## 类 SimpleTriggerContext

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

- 所有已实现的接口:
    TriggerContext

      public class SimpleTriggerContext
      extends Object
      implements TriggerContext

  Simple data holder implementation of the `TriggerContext` interface.
  从以下版本开始:
    3.0
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleTriggerContext()` Create a SimpleTriggerContext with all time values set to `null`.
    `SimpleTriggerContext(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)` Create a SimpleTriggerContext with the given time values.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Date` | `lastActualExecutionTime()` Return the last actual execution time of the task, or `null` if not scheduled before.
    `Date` | `lastCompletionTime()` Return the last completion time of the task, or `null` if not scheduled before.
    `Date` | `lastScheduledExecutionTime()` Return the last scheduled execution time of the task, or `null` if not scheduled before.
    `void` | `update(Date lastScheduledExecutionTime, Date lastActualExecutionTime, Date lastCompletionTime)` Update this holder's state with the latest time values.

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

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

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

    - #### SimpleTriggerContext

          public SimpleTriggerContext()

      Create a SimpleTriggerContext with all time values set to `null`.

    - #### SimpleTriggerContext

          public SimpleTriggerContext(Date lastScheduledExecutionTime,
                                      Date lastActualExecutionTime,
                                      Date lastCompletionTime)

      Create a SimpleTriggerContext with the given time values.
      参数:
        `lastScheduledExecutionTime` - last scheduled execution time
        `lastActualExecutionTime` - last actual execution time
        `lastCompletionTime` - last completion time

  - ### 方法详细资料

    - #### update

          public void update(Date lastScheduledExecutionTime,
                             Date lastActualExecutionTime,
                             Date lastCompletionTime)

      Update this holder's state with the latest time values.
      参数:
        `lastScheduledExecutionTime` - last scheduled execution time
        `lastActualExecutionTime` - last actual execution time
        `lastCompletionTime` - last completion time

    - #### lastScheduledExecutionTime

          @Nullable
          public Date lastScheduledExecutionTime()

      从接口复制的说明: `TriggerContext`
      Return the last scheduled execution time of the task, or `null` if not scheduled before.
      指定者:
        `lastScheduledExecutionTime` 在接口中 `TriggerContext`

    - #### lastActualExecutionTime

          @Nullable
          public Date lastActualExecutionTime()

      从接口复制的说明: `TriggerContext`
      Return the last actual execution time of the task, or `null` if not scheduled before.
      指定者:
        `lastActualExecutionTime` 在接口中 `TriggerContext`

    - #### lastCompletionTime

          @Nullable
          public Date lastCompletionTime()

      从接口复制的说明: `TriggerContext`
      Return the last completion time of the task, or `null` if not scheduled before.
      指定者:
        `lastCompletionTime` 在接口中 `TriggerContext`