Package org.apache.cassandra.utils
Interface MonotonicClockTranslation
-
- All Known Implementing Classes:
MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime
public interface MonotonicClockTranslation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longerror()Nanoseconds of probable error in the translationlongfromMillisSinceEpoch(long currentTimeMillis)accepts millis since epoch, returns nanoTime in the related clocklongtoMillisSinceEpoch(long nanoTime)accepts nanoTime in the related MonotinicClock, returns millis since epoch
-
-
-
Method Detail
-
fromMillisSinceEpoch
long fromMillisSinceEpoch(long currentTimeMillis)
accepts millis since epoch, returns nanoTime in the related clock
-
toMillisSinceEpoch
long toMillisSinceEpoch(long nanoTime)
accepts nanoTime in the related MonotinicClock, returns millis since epoch
-
error
long error()
Nanoseconds of probable error in the translation
-
-