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, getValue
public PeakRateCounter(MonitorConfig config)
public java.lang.Number getValue(int pollerIdx)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void increment()