Package io.grpc.internal
Class ReflectionLongAdderCounter
java.lang.Object
io.grpc.internal.ReflectionLongAdderCounter
- All Implemented Interfaces:
LongCounter
A
. Instantiates the object
and invokes methods reflectively to avoid a compile time dependency on LongAdder.
LongCounter
that is implemented with a JDK8
invalid reference
LongAdder
-
Method Summary
-
Method Details
-
add
public void add(long delta) Description copied from interface:LongCounter
Adds the delta to this counter.- Specified by:
add
in interfaceLongCounter
-
value
public long value()Description copied from interface:LongCounter
Returns the value of this counter.- Specified by:
value
in interfaceLongCounter
-