Package io.camunda.zeebe.scheduler.clock
Class DefaultActorClock
java.lang.Object
io.camunda.zeebe.scheduler.clock.DefaultActorClock
- All Implemented Interfaces:
ActorClock,InstantSource
Default actor clock implementation; minimizes calls to
System.currentTimeMillis() to once
per millisecond.-
Constructor Summary
Constructors -
Method Summary
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
-
DefaultActorClock
public DefaultActorClock()
-
-
Method Details
-
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
-