Class TimeStampIdGenerator


  • public class TimeStampIdGenerator
    extends java.lang.Object
    • Constructor Detail

      • TimeStampIdGenerator

        public TimeStampIdGenerator​(long minimumNext)
      • TimeStampIdGenerator

        public TimeStampIdGenerator()
    • Method Detail

      • idToMilliseconds

        public static long idToMilliseconds​(long id)
      • millisecondsToId

        public static long millisecondsToId​(long milliseconds)
      • generate

        public long generate()
      • now

        protected long now()
      • last

        public long last()
      • setMinimumNext

        public boolean setMinimumNext​(long newMinimum)