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 . |
int |
hashCode() |
void |
set(java.lang.Long n)
Set the current value.
|
getValue, toString
getConfig, getValue
public 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 NumberGauge
public int hashCode()
hashCode
in class NumberGauge