public class AtomicRateStatistic extends Object
Constructor and Description |
---|
AtomicRateStatistic(long averagePeriod,
TimeUnit unit)
Create an AtomicRateStatistic instance with the given average period.
|
Modifier and Type | Method and Description |
---|---|
void |
event()
Fired to record the occurrence of a monitored event.
|
long |
getCount()
Returns the total number of events that have occurred in the lifetime of this statistic.
|
float |
getRate()
Return the rate of events per unit time.
|
public AtomicRateStatistic(long averagePeriod, TimeUnit unit)
averagePeriod
- average periodunit
- period time unitpublic void event()
public long getCount()
public float getRate()
Copyright © 2024. All rights reserved.