Class AdderUtil
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.concurrent.AdderUtil
-
public final class AdderUtil extends java.lang.Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
hasJreAdder
-
Constructor Summary
Constructors Modifier Constructor Description private
AdderUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DoubleAdder
createDoubleAdder()
Create an instance ofLongAdder
.static LongAdder
createLongAdder()
Create an instance ofLongAdder
.
-
-
-
Method Detail
-
createLongAdder
public static LongAdder 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
public static DoubleAdder 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.
-
-