public class TestWorkflowClock extends java.lang.Object implements WorkflowClock
| コンストラクタと説明 |
|---|
TestWorkflowClock() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
advanceMilliseconds(long milliseconds) |
void |
advanceSeconds(long seconds) |
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() |
java.lang.Long |
fireTimers() |
boolean |
isReplaying()
true indicates if workflow is replaying already processed
events to reconstruct it state. |
void |
setCurrentTimeMillis(long timeMillis) |
public long currentTimeMillis()
currentTimeMillis インタフェース内 WorkflowClockDecisionTask start event of the decision
being processed or replayed.public void setCurrentTimeMillis(long timeMillis)
public boolean isReplaying()
WorkflowClocktrue 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.isReplaying インタフェース内 WorkflowClockpublic Promise<java.lang.Void> createTimer(long delaySeconds)
WorkflowClockcreateTimer インタフェース内 WorkflowClockpublic <T> Promise<T> createTimer(long delaySeconds, T context)
WorkflowClockcreateTimer インタフェース内 WorkflowClockcontext - context object that is returned inside the value when it
becomes ready.public java.lang.Long fireTimers()
public void advanceSeconds(long seconds)
public void advanceMilliseconds(long milliseconds)