Interface Timer.Metrics

All Known Implementing Classes:
TimerImpl.TimerMetrics
Enclosing interface:
Timer

public static interface Timer.Metrics
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    double
    Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    double
    Returns the mean rate at which events have occurred since the meter was created.
    long
    Returns the current number of failed calls.
    long
    Returns the current number of successful calls.
    long
    Returns the current number of total calls.
    double
    Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
    com.codahale.metrics.Snapshot
    Returns 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 top Unix 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 top Unix 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 top Unix 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