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:LongCounterAdds the delta to this counter.- Specified by:
addin interfaceLongCounter
-
value
public long value()Description copied from interface:LongCounterReturns the value of this counter.- Specified by:
valuein interfaceLongCounter
-