Package org.apache.cassandra.utils
Class MonotonicClock.SystemClock
- java.lang.Object
-
- org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock
-
- org.apache.cassandra.utils.MonotonicClock.SystemClock
-
- All Implemented Interfaces:
MonotonicClock
- Enclosing interface:
- MonotonicClock
public static class MonotonicClock.SystemClock extends MonotonicClock.AbstractEpochSamplingClock
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock
MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.MonotonicClock
MonotonicClock.AbstractEpochSamplingClock, MonotonicClock.Global, MonotonicClock.SampledClock, MonotonicClock.SystemClock
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
error()
boolean
isAfter(long instant)
boolean
isAfter(long now, long instant)
long
now()
-
Methods inherited from class org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock
pauseEpochSampling, resumeEpochSampling, translate
-
-
-
-
Method Detail
-
now
public long now()
- See Also:
Provides a monotonic time that can be compared with any other such value produced by the same clock since the application started only; these times cannot be persisted or serialized to other nodes. Nanosecond precision.
-
error
public long error()
- Returns:
- nanoseconds of potential error
-
isAfter
public boolean isAfter(long instant)
-
isAfter
public boolean isAfter(long now, long instant)
-
-