public class NanosecondClusterClock extends Object implements ClusterClock
ClusterClock implemented by calling HighResolutionClock.epochNanos().| Constructor and Description |
|---|
NanosecondClusterClock() |
| 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. |
TimeUnit |
timeUnit()
The unit of time returned from the
ClusterClock.time() method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap, mappublic TimeUnit timeUnit()
ClusterClock.time() method.timeUnit in interface ClusterClockClusterClock.time() method.public long time()
ClusterClock.timeUnit()s since 1 Jan 1970 UTC.time in interface ClusterClockClusterClock.timeUnit()s since 1 Jan 1970 UTC.public long timeMillis()
TimeUnit.MILLISECONDS.timeMillis in interface ClusterClockTimeUnit.MILLISECONDS.public long timeMicros()
TimeUnit.MICROSECONDS.timeMicros in interface ClusterClockTimeUnit.MICROSECONDS.public long timeNanos()
TimeUnit.NANOSECONDS.timeNanos in interface ClusterClockTimeUnit.NANOSECONDS.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.