Class LogicalClock

    • Constructor Detail

      • LogicalClock

        public LogicalClock()
    • Method Detail

      • increment

        public LogicalTimestamp increment()
        Increments the clock and returns the new timestamp.
        Returns:
        the updated clock time
      • update

        public LogicalTimestamp update​(LogicalTimestamp timestamp)
        Updates the clock using the given timestamp.
        Parameters:
        timestamp - the timestamp with which to update the clock
        Returns:
        the updated clock time
      • incrementAndUpdate

        public LogicalTimestamp incrementAndUpdate​(LogicalTimestamp timestamp)
        Increments the clock and updates it using the given timestamp.
        Parameters:
        timestamp - the timestamp with which to update the clock
        Returns:
        the updated clock time