com.amazonaws.services.simpleworkflow.flow

## インタフェース WorkflowClock

- 既知の実装クラスのリスト:
    TestWorkflowClock

      public interface WorkflowClock

  Clock that must be used inside workflow definition code to ensure replay determinism.

- - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `Promise<java.lang.Void>` | `createTimer(long delaySeconds)` Create a Value that becomes ready after the specified delay.
    `<T> Promise<T>` | `createTimer(long delaySeconds, T context)` Create a Value that becomes ready after the specified delay.
    `long` | `currentTimeMillis()`
    `boolean` | `isReplaying()` `true` indicates if workflow is replaying already processed events to reconstruct it state.

- - ### メソッドの詳細

    - #### currentTimeMillis

          long currentTimeMillis()

      戻り値:
        time of the `DecisionTask` start event of the decision being processed or replayed.

    - #### isReplaying

          boolean isReplaying()

      `true` indicates if workflow is replaying already processed events to reconstruct it state. `false` indicates that code is making forward process for the first time. For example can be used to avoid duplicating log records due to replay.

    - #### createTimer

          Promise<java.lang.Void> createTimer(long delaySeconds)

      Create a Value that becomes ready after the specified delay.
      パラメータ:
        `delay` - time-interval after which the Value becomes ready in seconds.
      戻り値:
        Promise that becomes ready after the specified delay.

    - #### createTimer

          <T> Promise<T> createTimer(long delaySeconds,
                                   T context)

      Create a Value that becomes ready after the specified delay.
      パラメータ:
        `context` - context object that is returned inside the value when it becomes ready.
      戻り値:
        Promise that becomes ready after the specified delay. When ready it contains value passed as context parameter.