Interface HybridLogicalClockService

    • Method Detail

      • timeNow

        HybridLogicalTime timeNow()
        Returns the current hybrid logical time.
        Returns:
        current hybrid logical time
      • recordEventTime

        void recordEventTime​(HybridLogicalTime time)
        Records a (receive) event and accordingly makes adjustments to the hybrid logical time.
        Parameters:
        time - received event time
      • now

        default long now()
        Returns the current time derived from the hybrid logical time.
        Returns:
        current system time
      • wallClockTimestamp

        default WallClockTimestamp wallClockTimestamp()
        Returns the current time as a WallClockTimestamp.
        Returns:
        wall clock timestamp