Modifier and Type | Method and Description |
---|---|
long |
getCount()
Returns the number of events which have been marked.
|
double |
getFifteenMinuteRate()
Returns the fifteen-minute exponentially-weighted moving average rate at which events have
occurred since the meter was created.
|
double |
getFiveMinuteRate()
Returns the five-minute exponentially-weighted moving average rate at which events have
occurred since the meter was created.
|
double |
getMeanRate()
Returns the mean rate at which events have occurred since the meter was created.
|
double |
getOneMinuteRate()
Returns the one-minute exponentially-weighted moving average rate at which events have
occurred since the meter was created.
|
void |
mark()
Mark the occurrence of an event.
|
void |
mark(long n)
Mark the occurrence of a given number of events.
|
void mark()
void mark(long n)
n
- the number of eventslong getCount()
Metered
double getFifteenMinuteRate()
Metered
top
Unix command.getFifteenMinuteRate
in interface Metered
double getFiveMinuteRate()
Metered
top
Unix command.getFiveMinuteRate
in interface Metered
double getMeanRate()
Metered
getMeanRate
in interface Metered
double getOneMinuteRate()
Metered
top
Unix command.getOneMinuteRate
in interface Metered