Package org.apache.cassandra.utils
Class MonotonicClock.SampledClock
java.lang.Object
org.apache.cassandra.utils.MonotonicClock.SampledClock
- All Implemented Interfaces:
MonotonicClock
- Enclosing interface:
- MonotonicClock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.MonotonicClock
MonotonicClock.AbstractEpochSamplingClock, MonotonicClock.Global, MonotonicClock.SampledClock, MonotonicClock.SystemClock -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SampledClock
-
-
Method Details
-
now
public long now() -
error
public long error()- Specified by:
errorin interfaceMonotonicClock- Returns:
- nanoseconds of potential error
-
translate
- Specified by:
translatein interfaceMonotonicClock
-
isAfter
public boolean isAfter(long instant) - Specified by:
isAfterin interfaceMonotonicClock
-
isAfter
public boolean isAfter(long now, long instant) - Specified by:
isAfterin interfaceMonotonicClock
-
pauseNowSampling
public void pauseNowSampling() -
resumeNowSampling
public void resumeNowSampling() -
refreshNow
public void refreshNow()
-