public class LongGauge extends NumberGauge
Gauge that reports a long value.config| Constructor and Description |
|---|
LongGauge(MonitorConfig config)
Create a new instance with the specified configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.concurrent.atomic.AtomicLong |
getNumber()
Returns a reference to the
AtomicLong. |
java.lang.Number |
getValue(int pollerIdx)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
void |
set(java.lang.Long n)
Set the current value.
|
getBackingNumber, setBackingNumber, toStringgetConfig, getValuepublic LongGauge(MonitorConfig config)
config - configuration for this gaugepublic void set(java.lang.Long n)
public java.util.concurrent.atomic.AtomicLong getNumber()
AtomicLong.public boolean equals(java.lang.Object o)
equals in class NumberGaugepublic int hashCode()
hashCode in class NumberGaugepublic java.lang.Number getValue(int pollerIdx)
getValue in interface Monitor<java.lang.Number>getValue in class NumberGauge