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 long
getCount()
double
getFifteenMinuteRate()
double
getFiveMinuteRate()
double
getMeanRate()
double
getOneMinuteRate()
void
mark()
Mark the occurrence of an event.void
mark(long n)
Mark the occurrence of a given number of events.String
toString()
-
-
-
Method Detail
-
mark
public void mark()
Mark the occurrence of an event.- Specified by:
mark
in interfaceorg.eclipse.microprofile.metrics.Meter
-
mark
public void mark(long n)
Mark the occurrence of a given number of events.- Specified by:
mark
in interfaceorg.eclipse.microprofile.metrics.Meter
- Parameters:
n
- the number of events
-
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
-
-