Class MeterImpl
- java.lang.Object
-
- fish.payara.microprofile.metrics.impl.MeterImpl
-
- All Implemented Interfaces:
org.eclipse.microprofile.metrics.Counting,org.eclipse.microprofile.metrics.Meter,org.eclipse.microprofile.metrics.Metered,org.eclipse.microprofile.metrics.Metric
@Vetoed public class MeterImpl extends Object implements org.eclipse.microprofile.metrics.Meter
A meter metric which measures mean throughput and one-, five-, and fifteen-minute exponentially-weighted moving average throughputs.- See Also:
ExponentiallyWeightedMovingAverage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()doublegetFifteenMinuteRate()doublegetFiveMinuteRate()doublegetMeanRate()doublegetOneMinuteRate()voidmark()Mark the occurrence of an event.voidmark(long n)Mark the occurrence of a given number of events.StringtoString()
-
-
-
Method Detail
-
mark
public void mark()
Mark the occurrence of an event.- Specified by:
markin interfaceorg.eclipse.microprofile.metrics.Meter
-
mark
public void mark(long n)
Mark the occurrence of a given number of events.- Specified by:
markin interfaceorg.eclipse.microprofile.metrics.Meter- Parameters:
n- the number of events
-
getCount
public long getCount()
- Specified by:
getCountin interfaceorg.eclipse.microprofile.metrics.Counting- Specified by:
getCountin interfaceorg.eclipse.microprofile.metrics.Meter- Specified by:
getCountin interfaceorg.eclipse.microprofile.metrics.Metered
-
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRatein interfaceorg.eclipse.microprofile.metrics.Meter- Specified by:
getFifteenMinuteRatein interfaceorg.eclipse.microprofile.metrics.Metered
-
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRatein interfaceorg.eclipse.microprofile.metrics.Meter- Specified by:
getFiveMinuteRatein interfaceorg.eclipse.microprofile.metrics.Metered
-
getMeanRate
public double getMeanRate()
- Specified by:
getMeanRatein interfaceorg.eclipse.microprofile.metrics.Meter- Specified by:
getMeanRatein interfaceorg.eclipse.microprofile.metrics.Metered
-
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRatein interfaceorg.eclipse.microprofile.metrics.Meter- Specified by:
getOneMinuteRatein interfaceorg.eclipse.microprofile.metrics.Metered
-
-