|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowClock
Clock that must be used inside workflow definition code to ensure replay determinism.
Method Summary | ||
---|---|---|
Promise<Void> |
createTimer(long delaySeconds)
Create a Value that becomes ready after the specified delay. |
|
|
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. |
Method Detail |
---|
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.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |