public class PeakRateCounter extends AbstractMonitor<java.lang.Number> implements Counter
config| Constructor and Description |
|---|
PeakRateCounter(MonitorConfig config)
Creates a counter implementation that records the maximum count per second
within a specific interval.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Number |
getValue(int pollerIdx)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
void |
increment()
Update the count by one.
|
void |
increment(long amount)
Update the count by the specified amount.
|
java.lang.String |
toString() |
getConfig, getValuepublic PeakRateCounter(MonitorConfig config)
public java.lang.Number getValue(int pollerIdx)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void increment()