Package me.ahoo.cosid

Class TimeOverflowException

All Implemented Interfaces:
Serializable

public class TimeOverflowException extends CosIdException
The time of a time-based generator no longer fits the time bits of its layout (03-core-model.md ยง4); replaces 4.x TimestampOverflowException. The generator issues no more ids: choose a layout with more time bits or a later epoch.
See Also:
  • Constructor Details

    • TimeOverflowException

      public TimeOverflowException(String generator, long time, int timeBits)
      The time overflowed.
      Parameters:
      generator - the generator name
      time - the time since the epoch, in the layout's unit
      timeBits - the time bits of the layout
  • Method Details

    • generator

      public String generator()
      The generator name.
      Returns:
      the name
    • timeBits

      public int timeBits()
      The time bits of the layout.
      Returns:
      the time bits