Class AtomicCounter


  • public class AtomicCounter
    extends Object
    An integer that can be incremented atomically with thread safety
    • Constructor Detail

      • AtomicCounter

        public AtomicCounter​(int initialValue)
    • Method Detail

      • getAndIncrement

        public long getAndIncrement()
      • incrementAndGet

        public long incrementAndGet()
      • get

        public long get()