Class MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime

java.lang.Object
org.apache.cassandra.utils.MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime
All Implemented Interfaces:
MonotonicClockTranslation
Enclosing class:
MonotonicClock.AbstractEpochSamplingClock

public static class MonotonicClock.AbstractEpochSamplingClock.AlmostSameTime extends Object implements MonotonicClockTranslation
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlmostSameTime(long millisSinceEpoch, long monotonicNanos, long errorNanos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Nanoseconds of probable error in the translation
    long
    fromMillisSinceEpoch(long currentTimeMillis)
    accepts millis since epoch, returns nanoTime in the related clock
    long
    toMillisSinceEpoch(long nanoTime)
    accepts nanoTime in the related MonotinicClock, returns millis since epoch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait