Class LongSequenceGenerator


  • public class LongSequenceGenerator
    extends Object
    Updated LongSequenceGenerator that uses an AtomicLongFieldUpdater for performance instead of synchronized methods
    • Constructor Detail

      • LongSequenceGenerator

        public LongSequenceGenerator()
    • Method Detail

      • getNextSequenceId

        public long getNextSequenceId()
      • getLastSequenceId

        public long getLastSequenceId()
      • setLastSequenceId

        public void setLastSequenceId​(long l)