| Constructor and Description |
|---|
Meter()
Creates a new
Meter. |
Meter(Clock clock)
Creates a new
Meter. |
| 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.
|
public Meter()
Meter.public void mark()
public void mark(long n)
n - the number of eventspublic long getCount()
Meteredpublic double getFifteenMinuteRate()
Meteredtop Unix command.getFifteenMinuteRate in interface Meteredpublic double getFiveMinuteRate()
Meteredtop Unix command.getFiveMinuteRate in interface Meteredpublic double getMeanRate()
MeteredgetMeanRate in interface Meteredpublic double getOneMinuteRate()
Meteredtop Unix command.getOneMinuteRate in interface Metered"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"