Packages

package unsafe

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. unsafe
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class AtomicDouble extends Number with Serializable

    A double value that may be updated atomically.

    A double value that may be updated atomically. See the java.util.concurrent.atomic package specification for description of the properties of atomic variables. An AtomicDouble is used in applications such as atomic accumulation, and cannot be used as a replacement for a Double. However, this class does extend Number to allow uniform access by tools and utilities that deal with numerically-based classes.

    This class compares primitive double values in methods such as #compareAndSet by comparing their bitwise representation using Double#doubleToRawLongBits, which differs from both the primitive double == operator and from Double#equals, as if implemented by:

    
    static boolean bitEquals(double x, double y) {
      long xBits = Double.doubleToRawLongBits(x);
      long yBits = Double.doubleToRawLongBits(y);
      return xBits == yBits;
    
    }
    

    It is possible to write a more scalable updater, at the cost of giving up strict atomicity. See for example <a href="http://gee.cs.oswego.edu/dl/jsr166/dist/docs/java.base/java/util/concurrent/atomic/DoubleAdder.html"> DoubleAdder.

  2. trait LabelledMetric[R, E, M] extends AnyRef

    Helper to create strongly typed Micrometer labelled metrics.

    Helper to create strongly typed Micrometer labelled metrics.

    Metrics are defined with a list of labels whose length is statically known. Operations on the metric (increment a counter for instance), require to pass a list of label values with the same length.

  3. type Registry = Service

Value Members

  1. def meterRegistry: RIO[Registry, MeterRegistry]
  2. def updateRegistry[A](f: (MeterRegistry) => Task[A]): RIO[Registry, A]
  3. def zipLabelsAsTags(labelNames: Seq[String], labelValues: Seq[String]): Seq[Tag]
  4. object Counter extends LabelledMetric[Registry, Throwable, Counter]
  5. object DistributionSummary extends LabelledMetric[Registry, Throwable, DistributionSummary]
  6. object Gauge extends LabelledMetric[Registry, Throwable, Gauge]
  7. object Registry
  8. object TimeGauge extends LabelledMetric[Registry, Throwable, TimeGauge]
  9. object Timer extends LabelledMetric[Registry, Throwable, Timer]

Inherited from AnyRef

Inherited from Any

Ungrouped