Class IDSequence

  • public class IDSequence
    extends Object
    ID sequence for generating unique long identifiers with start 0 and increment 1.
    • Constructor Detail

      • IDSequence

        public IDSequence()
      • IDSequence

        public IDSequence​(boolean cyclic)
      • IDSequence

        public IDSequence​(boolean cyclic,
                          long cycleLen)
    • Method Detail

      • getNextID

        public long getNextID()
        Creates the next ID, if overflow a RuntimeException is thrown.
      • getCurrentID

        public long getCurrentID()
      • reset

        public void reset()
      • reset

        public void reset​(long value)