java.lang.Object
io.opentelemetry.sdk.metrics.internal.concurrent.AdderUtil

public final class AdderUtil extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Field Details

    • hasJreAdder

      private static final boolean hasJreAdder
  • Constructor Details

    • AdderUtil

      private AdderUtil()
  • Method Details

    • createLongAdder

      public static LongAdder createLongAdder()
      Create an instance of LongAdder. The implementation will be LongAdder if available on the classpath. If not, a less performant implementation based on AtomicLong will be used.
    • createDoubleAdder

      public static DoubleAdder createDoubleAdder()
      Create an instance of LongAdder. The implementation will be DoubleAdder if available on the classpath. If not, a less performant implementation based on AtomicLong will be used.