Class AdderUtil
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.concurrent.AdderUtil
-
public final class AdderUtil extends java.lang.ObjectThis 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 booleanhasJreAdder
-
Constructor Summary
Constructors Modifier Constructor Description privateAdderUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DoubleAddercreateDoubleAdder()Create an instance ofLongAdder.static LongAddercreateLongAdder()Create an instance ofLongAdder.
-
-
-
Method Detail
-
createLongAdder
public static LongAdder createLongAdder()
Create an instance ofLongAdder. The implementation will beLongAdderif available on the classpath. If not, a less performant implementation based onAtomicLongwill be used.
-
createDoubleAdder
public static DoubleAdder createDoubleAdder()
Create an instance ofLongAdder. The implementation will beDoubleAdderif available on the classpath. If not, a less performant implementation based onAtomicLongwill be used.
-
-