Class AdderUtil
java.lang.Object
io.opentelemetry.sdk.metrics.internal.concurrent.AdderUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleAdder
Create an instance ofLongAdder
.static LongAdder
Create an instance ofLongAdder
.
-
Field Details
-
hasJreAdder
private static final boolean hasJreAdder
-
-
Constructor Details
-
AdderUtil
private AdderUtil()
-
-
Method Details
-
createLongAdder
Create an instance ofLongAdder
. The implementation will beLongAdder
if available on the classpath. If not, a less performant implementation based onAtomicLong
will be used. -
createDoubleAdder
Create an instance ofLongAdder
. The implementation will beDoubleAdder
if available on the classpath. If not, a less performant implementation based onAtomicLong
will be used.
-