Package io.camunda.zeebe.scheduler.clock
Class ControlledActorClock
java.lang.Object
io.camunda.zeebe.scheduler.clock.ControlledActorClock
- All Implemented Interfaces:
ActorClock,InstantSource
For testcases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlonglonglonglongvoidvoidreset()voidsetCurrentTime(long currentTime) voidsetCurrentTime(Instant currentTime) booleanupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.clock.ActorClock
instant, millisMethods inherited from interface java.time.InstantSource
withZone
-
Constructor Details
-
ControlledActorClock
public ControlledActorClock()
-
-
Method Details
-
pinCurrentTime
public void pinCurrentTime() -
addTime
-
reset
public void reset() -
getCurrentTime
-
setCurrentTime
public void setCurrentTime(long currentTime) -
setCurrentTime
-
update
public boolean update()- Specified by:
updatein interfaceActorClock
-
getTimeMillis
public long getTimeMillis()- Specified by:
getTimeMillisin interfaceActorClock
-
getNanosSinceLastMillisecond
public long getNanosSinceLastMillisecond()- Specified by:
getNanosSinceLastMillisecondin interfaceActorClock
-
getNanoTime
public long getNanoTime()- Specified by:
getNanoTimein interfaceActorClock
-
getCurrentTimeInMillis
public long getCurrentTimeInMillis()
-