public class RateAverages extends Object
| Constructor and Description |
|---|
RateAverages()Create a new RateAverages |
| Modifier and Type | Method and Description |
|---|---|
double | getAverage()Gets the weighted average. |
double | getCurrent()Gets the current average. |
double | getLast()Gets the last average. |
static RateAverages | getTemp()Gets a thread-local temp instance. |
long | getTotalEventCount()Gets the total event count. |
double | getTotalValues()Gets the total values. |
static void | release()Remove the thread-local temp instance. |
(package private) void | reset()Reset all fields to zero. |
(package private) void | setAverage(double average)Set the weighted average. |
(package private) void | setCurrent(double current)Set the current period average. |
(package private) void | setLast(double last)Set the last period average. |
(package private) void | setTotalEventCount(long totalEventCount)Set the total event count. |
(package private) void | setTotalValues(double totalValues)Set the total values sum. |
public double getAverage()
public double getCurrent()
public double getLast()
public static RateAverages getTemp()
public long getTotalEventCount()
public double getTotalValues()
public static void release()
void reset()
void setAverage(double average)
void setCurrent(double current)
void setLast(double last)
void setTotalEventCount(long totalEventCount)
void setTotalValues(double totalValues)