Class MonotonicClock.SampledClock

    • Constructor Detail

    • Method Detail

      • now

        public long now()
        Specified by:
        now in interface MonotonicClock
        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()
        Specified by:
        error in interface MonotonicClock
        Returns:
        nanoseconds of potential error
      • isAfter

        public boolean isAfter​(long now,
                               long instant)
        Specified by:
        isAfter in interface MonotonicClock
      • pauseNowSampling

        public void pauseNowSampling()
      • resumeNowSampling

        public void resumeNowSampling()
      • refreshNow

        public void refreshNow()