Class ClockTooManyBackwardsException

All Implemented Interfaces:
Serializable

public class ClockTooManyBackwardsException extends CosIdException
Exception thrown when clock backwards exceeds threshold.

Indicates that the system clock has moved backwards by more than the configured broken threshold, and the generator cannot recover.

See Also:
  • Constructor Details

    • ClockTooManyBackwardsException

      public ClockTooManyBackwardsException(long lastTimestamp, long currentTimestamp, long brokenThreshold)
      Creates a new exception.
      Parameters:
      lastTimestamp - the last generated timestamp
      currentTimestamp - the current system timestamp
      brokenThreshold - the configured broken threshold
  • Method Details

    • getLastTimestamp

      public long getLastTimestamp()
      Gets the last timestamp.
      Returns:
      the last timestamp
    • getCurrentTimestamp

      public long getCurrentTimestamp()
      Gets the current timestamp.
      Returns:
      the current timestamp
    • getBrokenThreshold

      public long getBrokenThreshold()
      Gets the broken threshold.
      Returns:
      the broken threshold