Class TimestampOverflowException

All Implemented Interfaces:
Serializable

public class TimestampOverflowException extends CosIdException
Exception thrown when timestamp exceeds maximum value.

Indicates that the timestamp portion of the ID has overflowed, meaning the generator has been in use for longer than the configured time range allows.

See Also:
  • Constructor Details

    • TimestampOverflowException

      public TimestampOverflowException(long epoch, long diffTimestamp, long maxTimestamp)
      Creates a new exception.
      Parameters:
      epoch - the configured epoch
      diffTimestamp - the calculated timestamp difference
      maxTimestamp - the maximum representable timestamp
  • Method Details

    • getEpoch

      public long getEpoch()
      Gets the epoch.
      Returns:
      the epoch
    • getDiffTimestamp

      public long getDiffTimestamp()
      Gets the diff timestamp.
      Returns:
      the diff timestamp
    • getMaxTimestamp

      public long getMaxTimestamp()
      Gets the max timestamp.
      Returns:
      the max timestamp