com.netflix.servo.monitor
Class LongGauge

java.lang.Object
  extended by com.netflix.servo.monitor.NumberGauge
      extended by com.netflix.servo.monitor.LongGauge
All Implemented Interfaces:
Gauge<java.lang.Number>, Monitor<java.lang.Number>, NumericMonitor<java.lang.Number>

public class LongGauge
extends NumberGauge

A Gauge that reports a long value.


Constructor Summary
LongGauge(MonitorConfig config)
          Create a new instance with the specified configuration.
 
Method Summary
 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.
 
Methods inherited from class com.netflix.servo.monitor.NumberGauge
getConfig, getValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongGauge

public LongGauge(MonitorConfig config)
Create a new instance with the specified configuration.

Parameters:
config - configuration for this gauge
Method Detail

set

public void set(java.lang.Long n)
Set the current value.


getNumber

public java.util.concurrent.atomic.AtomicLong getNumber()
Returns a reference to the AtomicLong.


equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class NumberGauge

hashCode

public int hashCode()

Overrides:
hashCode in class NumberGauge