Class ReflectionLongAdderCounter

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

public final class ReflectionLongAdderCounter extends Object implements LongCounter
A LongCounter that is implemented with a JDK8
invalid reference
LongAdder
. Instantiates the object and invokes methods reflectively to avoid a compile time dependency on LongAdder.
  • 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