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()
Metered
public double getFifteenMinuteRate()
Metered
top
Unix command.getFifteenMinuteRate
in interface Metered
public double getFiveMinuteRate()
Metered
top
Unix command.getFiveMinuteRate
in interface Metered
public double getMeanRate()
Metered
getMeanRate
in interface Metered
public double getOneMinuteRate()
Metered
top
Unix command.getOneMinuteRate
in interface Metered
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"