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 DoubleAdderCreate an instance ofLongAdder.static LongAdderCreate 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 beLongAdderif available on the classpath. If not, a less performant implementation based onAtomicLongwill be used. -
createDoubleAdder
Create an instance ofLongAdder. The implementation will beDoubleAdderif available on the classpath. If not, a less performant implementation based onAtomicLongwill be used.
-