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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleAdderCreate an instance ofLongAdder.static LongAdderCreate an instance ofLongAdder.
-
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.
-