public interface WorkflowClock
| Modifier and Type | Method and Description | 
|---|---|
| Promise<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()trueindicates if workflow is replaying already processed
 events to reconstruct it state. | 
long currentTimeMillis()
DecisionTask start event of the decision
         being processed or replayed.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.Promise<Void> createTimer(long delaySeconds)
delay - time-interval after which the Value becomes ready in seconds.<T> Promise<T> createTimer(long delaySeconds, T context)
context - context object that is returned inside the value when it
            becomes ready.