Interface Timer.Metrics
- All Known Implementing Classes:
TimerImpl.TimerMetrics
- Enclosing interface:
Timer
public static interface Timer.Metrics
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the mean rate at which events have occurred since the meter was created.longReturns the current number of failed calls.longReturns the current number of successful calls.longReturns the current number of total calls.doubleReturns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.com.codahale.metrics.SnapshotReturns a snapshot of the values.
-
Method Details
-
getNumberOfTotalCalls
long getNumberOfTotalCalls()Returns the current number of total calls.- Returns:
- the current number of total calls
-
getNumberOfSuccessfulCalls
long getNumberOfSuccessfulCalls()Returns the current number of successful calls.- Returns:
- the current number of successful calls
-
getNumberOfFailedCalls
long getNumberOfFailedCalls()Returns the current number of failed calls.- Returns:
- the current number of failed calls
-
getFifteenMinuteRate
double getFifteenMinuteRate()Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.This rate has the same exponential decay factor as the fifteen-minute load average in the
topUnix command.- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFiveMinuteRate
double getFiveMinuteRate()Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.This rate has the same exponential decay factor as the five-minute load average in the
topUnix command.- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getMeanRate
double getMeanRate()Returns the mean rate at which events have occurred since the meter was created.- Returns:
- the mean rate at which events have occurred since the meter was created
-
getOneMinuteRate
double getOneMinuteRate()Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.This rate has the same exponential decay factor as the one-minute load average in the
topUnix command.- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getSnapshot
com.codahale.metrics.Snapshot getSnapshot()Returns a snapshot of the values.- Returns:
- a snapshot of the values
-