public interface RateSummaryListener| Modifier and Type | Method and Description |
|---|---|
void | add(double totalValue,
long eventCount,
double totalEventTime,
long period)Called to add rate statistics for a period. |
default double[] | getLastValues(int count)Get the last N data points from persistent storage (if available). |
void add(double totalValue,
long eventCount,
double totalEventTime,
long period)totalValue - sum of all event values in the most recent periodeventCount - how many events occurredtotalEventTime - how long the events were running forperiod - how long this period isdefault double[] getLastValues(int count)
count - number of data points requested