Class AtomicCounter


  • public class AtomicCounter
    extends java.lang.Object
    An integer that can be incremented atomically with thread safety
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomicCounter​(int initialValue)  
    • Constructor Detail

      • AtomicCounter

        public AtomicCounter​(int initialValue)
    • Method Detail

      • getAndIncrement

        public long getAndIncrement()
      • incrementAndGet

        public long incrementAndGet()
      • get

        public long get()