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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock
MonotonicClock.AbstractEpochSamplingClock.AlmostSameTimeNested classes/interfaces inherited from interface org.apache.cassandra.utils.MonotonicClock
MonotonicClock.AbstractEpochSamplingClock, MonotonicClock.Global, MonotonicClock.SampledClock, MonotonicClock.SystemClock -
Method Summary
Methods inherited from class org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock
pauseEpochSampling, resumeEpochSampling, translate
-
Method Details
-
now
public long now() -
error
public long error()- Returns:
- nanoseconds of potential error
-
isAfter
public boolean isAfter(long instant) -
isAfter
public boolean isAfter(long now, long instant)
-