public final class Gauge extends java.lang.Object implements Metric
Constructor and Description |
---|
Gauge(java.lang.String name)
Construct a new Gauge given a name
|
Gauge(java.lang.String name,
long value)
Construct a new Gauge given a name and a initial value of the value
|
public Gauge(java.lang.String name)
name
- the name of the Gauge.public Gauge(java.lang.String name, long value)
name
- the name of the Gaugevalue
- initial value.public long getValue()
public java.lang.String getName()
Metric
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object