Class TimeAndCounterIDGenerator

  • All Implemented Interfaces:
    IDGenerator

    public class TimeAndCounterIDGenerator
    extends Object
    implements IDGenerator
    A TimeAndCounterIDGenerator

    This IDGenerator doesn't support more than 16777215 IDs per 16 millisecond. It would throw an exception if this happens.

    • Constructor Detail

      • TimeAndCounterIDGenerator

        public TimeAndCounterIDGenerator()
    • Method Detail

      • getInternalTimeMark

        public long getInternalTimeMark()
      • setInternalID

        public void setInternalID​(long id)
      • setInternalDate

        public void setInternalDate​(long date)
      • refresh

        public void refresh()