public class ControlledActorClock extends Object implements ActorClock
| Constructor and Description |
|---|
ControlledActorClock() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTime(java.time.Duration durationToAdd) |
java.time.Instant |
getCurrentTime() |
long |
getCurrentTimeInMillis() |
long |
getNanosSinceLastMillisecond() |
long |
getNanoTime() |
long |
getTimeMillis() |
void |
pinCurrentTime() |
void |
reset() |
void |
setCurrentTime(java.time.Instant currentTime) |
void |
setCurrentTime(long currentTime) |
boolean |
update() |
protected boolean |
usesOffset() |
protected boolean |
usesPointInTime() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrent, currentTimeMillispublic void setCurrentTime(long currentTime)
public void setCurrentTime(java.time.Instant currentTime)
public void pinCurrentTime()
public void addTime(java.time.Duration durationToAdd)
public void reset()
public long getTimeMillis()
getTimeMillis in interface ActorClockpublic java.time.Instant getCurrentTime()
protected boolean usesPointInTime()
protected boolean usesOffset()
public boolean update()
update in interface ActorClockpublic long getNanosSinceLastMillisecond()
getNanosSinceLastMillisecond in interface ActorClockpublic long getNanoTime()
getNanoTime in interface ActorClockpublic long getCurrentTimeInMillis()
Copyright © 2017–2019 camunda services GmbH. All rights reserved.