Class JreLongAdder
java.lang.Object
io.opentelemetry.sdk.metrics.internal.concurrent.JreLongAdder
- All Implemented Interfaces:
LongAdder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long x) Add the given value.voidreset()Resets the variables maintaining the sum to zero.longsum()Returns the current sum.longEquivalent in effect toLongAdder.sum()followed byLongAdder.reset().toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface LongAdder
decrement, doubleValue, floatValue, increment, intValue, longValue
-
Field Details
-
delegate
-
-
Constructor Details
-
JreLongAdder
JreLongAdder()
-
-
Method Details
-
add
-
sum
-
reset
-
sumThenReset
public long sumThenReset()Description copied from interface:LongAdderEquivalent in effect toLongAdder.sum()followed byLongAdder.reset().- Specified by:
sumThenResetin interfaceLongAdder- Returns:
- the sum
- See Also:
-
toString
-