public class MillisecondClusterClock extends Object implements ClusterClock
ClusterClock
implemented by calling System.currentTimeMillis()
.Constructor and Description |
---|
MillisecondClusterClock() |
Modifier and Type | Method and Description |
---|---|
long |
time()
The count of
ClusterClock.timeUnit() s since 1 Jan 1970 UTC. |
long |
timeMicros()
Get the current time in
TimeUnit.MICROSECONDS . |
long |
timeMillis()
Get the current time in
TimeUnit.MILLISECONDS . |
long |
timeNanos()
Get the current time in
TimeUnit.NANOSECONDS . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map, map, timeUnit
public long time()
ClusterClock.timeUnit()
s since 1 Jan 1970 UTC.time
in interface ClusterClock
ClusterClock.timeUnit()
s since 1 Jan 1970 UTC.public long timeMillis()
TimeUnit.MILLISECONDS
.timeMillis
in interface ClusterClock
TimeUnit.MILLISECONDS
.public long timeMicros()
TimeUnit.MICROSECONDS
.timeMicros
in interface ClusterClock
TimeUnit.MICROSECONDS
.public long timeNanos()
TimeUnit.NANOSECONDS
.timeNanos
in interface ClusterClock
TimeUnit.NANOSECONDS
.Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.