Class ConcurrentGaugeImpl

java.lang.Object
io.quarkus.micrometer.runtime.binder.mpmetrics.ConcurrentGaugeImpl
All Implemented Interfaces:
MeterHolder, org.eclipse.microprofile.metrics.ConcurrentGauge, org.eclipse.microprofile.metrics.Metric

class ConcurrentGaugeImpl extends Object implements org.eclipse.microprofile.metrics.ConcurrentGauge, MeterHolder
  • Field Details

    • longAdder

      final LongAdder longAdder
    • gauge

      io.micrometer.core.instrument.Gauge gauge
  • Constructor Details

    • ConcurrentGaugeImpl

      ConcurrentGaugeImpl()
  • Method Details

    • register

      ConcurrentGaugeImpl register(MpMetadata metadata, MetricDescriptor metricInfo, io.micrometer.core.instrument.MeterRegistry registry)
    • getCount

      public long getCount()
      Specified by:
      getCount in interface org.eclipse.microprofile.metrics.ConcurrentGauge
    • getMax

      public long getMax()
      Not supported for micrometer. Min/max values per dropwizard would be provided by dropwizard capabilities if enabled.
      Specified by:
      getMax in interface org.eclipse.microprofile.metrics.ConcurrentGauge
    • getMin

      public long getMin()
      Not supported for micrometer. Min/max values per dropwizard would be provided by dropwizard capabilities if enabled.
      Specified by:
      getMin in interface org.eclipse.microprofile.metrics.ConcurrentGauge
    • inc

      public void inc()
      Specified by:
      inc in interface org.eclipse.microprofile.metrics.ConcurrentGauge
    • dec

      public void dec()
      Specified by:
      dec in interface org.eclipse.microprofile.metrics.ConcurrentGauge
    • getMeter

      public io.micrometer.core.instrument.Meter getMeter()
      Specified by:
      getMeter in interface MeterHolder
    • getType

      public org.eclipse.microprofile.metrics.MetricType getType()
      Specified by:
      getType in interface MeterHolder