Class DropwizardAutoGauge<T>
- java.lang.Object
-
- org.apache.iotdb.metrics.dropwizard.type.DropwizardAutoGauge<T>
-
- All Implemented Interfaces:
com.codahale.metrics.Gauge<java.lang.Long>,com.codahale.metrics.Metric,org.apache.iotdb.metrics.type.Gauge,org.apache.iotdb.metrics.type.IMetric
public class DropwizardAutoGauge<T> extends java.lang.Object implements org.apache.iotdb.metrics.type.Gauge, com.codahale.metrics.Gauge<java.lang.Long>
-
-
Constructor Summary
Constructors Constructor Description DropwizardAutoGauge(T obj, java.util.function.ToLongFunction<T> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecr(long value)java.lang.LonggetValue()voidincr(long value)voidset(long value)longvalue()
-
-
-
Method Detail
-
getValue
public java.lang.Long getValue()
- Specified by:
getValuein interfacecom.codahale.metrics.Gauge<T>
-
value
public long value()
- Specified by:
valuein interfaceorg.apache.iotdb.metrics.type.Gauge
-
incr
public void incr(long value)
- Specified by:
incrin interfaceorg.apache.iotdb.metrics.type.Gauge
-
decr
public void decr(long value)
- Specified by:
decrin interfaceorg.apache.iotdb.metrics.type.Gauge
-
set
public void set(long value)
- Specified by:
setin interfaceorg.apache.iotdb.metrics.type.Gauge
-
-