Class TimerImpl.TimerMetrics

java.lang.Object
io.github.resilience4j.metrics.internal.TimerImpl.TimerMetrics
All Implemented Interfaces:
Timer.Metrics
Enclosing class:
TimerImpl

private final class TimerImpl.TimerMetrics extends Object implements Timer.Metrics
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • 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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimerMetrics

      private TimerMetrics()
  • Method Details

    • getNumberOfTotalCalls

      public long getNumberOfTotalCalls()
      Description copied from interface: Timer.Metrics
      Returns the current number of total calls.
      Specified by:
      getNumberOfTotalCalls in interface Timer.Metrics
      Returns:
      the current number of total calls
    • getNumberOfSuccessfulCalls

      public long getNumberOfSuccessfulCalls()
      Description copied from interface: Timer.Metrics
      Returns the current number of successful calls.
      Specified by:
      getNumberOfSuccessfulCalls in interface Timer.Metrics
      Returns:
      the current number of successful calls
    • getNumberOfFailedCalls

      public long getNumberOfFailedCalls()
      Description copied from interface: Timer.Metrics
      Returns the current number of failed calls.
      Specified by:
      getNumberOfFailedCalls in interface Timer.Metrics
      Returns:
      the current number of failed calls
    • getFifteenMinuteRate

      public double getFifteenMinuteRate()
      Description copied from interface: Timer.Metrics
      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.

      Specified by:
      getFifteenMinuteRate in interface Timer.Metrics
      Returns:
      the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
    • getFiveMinuteRate

      public double getFiveMinuteRate()
      Description copied from interface: Timer.Metrics
      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.

      Specified by:
      getFiveMinuteRate in interface Timer.Metrics
      Returns:
      the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
    • getMeanRate

      public double getMeanRate()
      Description copied from interface: Timer.Metrics
      Returns the mean rate at which events have occurred since the meter was created.
      Specified by:
      getMeanRate in interface Timer.Metrics
      Returns:
      the mean rate at which events have occurred since the meter was created
    • getOneMinuteRate

      public double getOneMinuteRate()
      Description copied from interface: Timer.Metrics
      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.

      Specified by:
      getOneMinuteRate in interface Timer.Metrics
      Returns:
      the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
    • getSnapshot

      public com.codahale.metrics.Snapshot getSnapshot()
      Description copied from interface: Timer.Metrics
      Returns a snapshot of the values.
      Specified by:
      getSnapshot in interface Timer.Metrics
      Returns:
      a snapshot of the values