public class RateAverages extends Object
| Constructor and Description |
|---|
RateAverages()Create a new RateAverages |
| Modifier and Type | Method and Description |
|---|---|
double | getAverage()The weighted average. |
double | getCurrent()The current average. |
double | getLast()The last average. |
static RateAverages | getTemp()Thread-local temp instance. |
long | getTotalEventCount()The total event count. |
double | getTotalValues()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)Stores the weighted average. |
(package private) void | setCurrent(double current)Stores the current period average. |
(package private) void | setLast(double last)Stores the last period average. |
(package private) void | setTotalEventCount(long totalEventCount)Stores the total event count. |
(package private) void | setTotalValues(double totalValues)Stores 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)