Class AtomicLongCounter

java.lang.Object
io.grpc.internal.AtomicLongCounter
All Implemented Interfaces:
LongCounter

final class AtomicLongCounter extends Object implements LongCounter
An implementation of LongCounter that is just an AtomicLong.
  • Field Details

  • Constructor Details

  • Method Details

    • add

      public void add(long delta)
      Description copied from interface: LongCounter
      Adds the delta to this counter.
      Specified by:
      add in interface LongCounter
    • value

      public long value()
      Description copied from interface: LongCounter
      Returns the value of this counter.
      Specified by:
      value in interface LongCounter