Class MeterAdapter
- java.lang.Object
-
- io.quarkus.micrometer.runtime.binder.mpmetrics.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 Summary
Fields Modifier and Type Field Description (package private) io.micrometer.core.instrument.Counter
counter
-
Constructor Summary
Constructors Constructor Description MeterAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
double
getFifteenMinuteRate()
double
getFiveMinuteRate()
double
getMeanRate()
io.micrometer.core.instrument.Meter
getMeter()
double
getOneMinuteRate()
org.eclipse.microprofile.metrics.MetricType
getType()
void
mark()
void
mark(long l)
MeterAdapter
register(MpMetadata metadata, MetricDescriptor descriptor, io.micrometer.core.instrument.MeterRegistry registry)
-
-
-
Method Detail
-
register
public MeterAdapter register(MpMetadata metadata, MetricDescriptor descriptor, io.micrometer.core.instrument.MeterRegistry registry)
-
mark
public void mark()
- Specified by:
mark
in interfaceorg.eclipse.microprofile.metrics.Meter
-
mark
public void mark(long l)
- Specified by:
mark
in interfaceorg.eclipse.microprofile.metrics.Meter
-
getCount
public long getCount()
- Specified by:
getCount
in interfaceorg.eclipse.microprofile.metrics.Counting
- Specified by:
getCount
in interfaceorg.eclipse.microprofile.metrics.Meter
- Specified by:
getCount
in interfaceorg.eclipse.microprofile.metrics.Metered
-
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Meter
- Specified by:
getFifteenMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Metered
-
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Meter
- Specified by:
getFiveMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Metered
-
getMeanRate
public double getMeanRate()
- Specified by:
getMeanRate
in interfaceorg.eclipse.microprofile.metrics.Meter
- Specified by:
getMeanRate
in interfaceorg.eclipse.microprofile.metrics.Metered
-
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Meter
- Specified by:
getOneMinuteRate
in interfaceorg.eclipse.microprofile.metrics.Metered
-
getMeter
public io.micrometer.core.instrument.Meter getMeter()
- Specified by:
getMeter
in interfaceMeterHolder
-
getType
public org.eclipse.microprofile.metrics.MetricType getType()
- Specified by:
getType
in interfaceMeterHolder
-
-