Class MeterAdapter

  • All Implemented Interfaces:
    MeterHolder, org.eclipse.microprofile.metrics.Counting, org.eclipse.microprofile.metrics.Meter, org.eclipse.microprofile.metrics.Metered, org.eclipse.microprofile.metrics.Metric

    public class MeterAdapter
    extends Object
    implements org.eclipse.microprofile.metrics.Meter, MeterHolder
    • Field Detail

      • counter

        io.micrometer.core.instrument.Counter counter
    • Constructor Detail

      • MeterAdapter

        public MeterAdapter()
    • Method Detail

      • mark

        public void mark()
        Specified by:
        mark in interface org.eclipse.microprofile.metrics.Meter
      • mark

        public void mark​(long l)
        Specified by:
        mark in interface org.eclipse.microprofile.metrics.Meter
      • getCount

        public long getCount()
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Counting
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Meter
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Metered
      • getFifteenMinuteRate

        public double getFifteenMinuteRate()
        Specified by:
        getFifteenMinuteRate in interface org.eclipse.microprofile.metrics.Meter
        Specified by:
        getFifteenMinuteRate in interface org.eclipse.microprofile.metrics.Metered
      • getFiveMinuteRate

        public double getFiveMinuteRate()
        Specified by:
        getFiveMinuteRate in interface org.eclipse.microprofile.metrics.Meter
        Specified by:
        getFiveMinuteRate in interface org.eclipse.microprofile.metrics.Metered
      • getMeanRate

        public double getMeanRate()
        Specified by:
        getMeanRate in interface org.eclipse.microprofile.metrics.Meter
        Specified by:
        getMeanRate in interface org.eclipse.microprofile.metrics.Metered
      • getOneMinuteRate

        public double getOneMinuteRate()
        Specified by:
        getOneMinuteRate in interface org.eclipse.microprofile.metrics.Meter
        Specified by:
        getOneMinuteRate in interface org.eclipse.microprofile.metrics.Metered
      • 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