Interface Metered

All Superinterfaces:
Counting, Metric, Summing
All Known Implementing Classes:
Meter, Timer

public interface Metered extends Metric, Counting, Summing
An object which maintains mean and moving average rates.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of events which have been marked.
    double
    Returns the fifteen-minute moving average rate at which events have occurred since the meter was created.
    double
    Returns the five-minute 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.
    double
    Returns the one-minute moving average rate at which events have occurred since the meter was created.
    long
    Returns the sum of events which have been marked.
  • Method Details

    • getCount

      long getCount()
      Returns the number of events which have been marked.
      Specified by:
      getCount in interface Counting
      Returns:
      the number of events which have been marked
    • getSum

      long getSum()
      Returns the sum of events which have been marked.
      Specified by:
      getSum in interface Summing
      Returns:
      the sum of events which have been marked
    • getFifteenMinuteRate

      double getFifteenMinuteRate()
      Returns the fifteen-minute moving average rate at which events have occurred since the meter was created.
      Returns:
      the fifteen-minute moving average rate at which events have occurred since the meter was created
    • getFiveMinuteRate

      double getFiveMinuteRate()
      Returns the five-minute moving average rate at which events have occurred since the meter was created.
      Returns:
      the five-minute 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 moving average rate at which events have occurred since the meter was created.
      Returns:
      the one-minute moving average rate at which events have occurred since the meter was created