public class MutableGaugeFloat extends MutableGauge
Modifier and Type | Method and Description |
---|---|
void |
decr()
Decrement the value of the metric by 1
|
void |
incr()
Increment the value of the metric by 1
|
void |
set(float value) |
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric
|
float |
value() |
info
changed, clearChanged, setChanged, snapshot
public float value()
public void incr()
MutableGauge
incr
in class MutableGauge
public void decr()
MutableGauge
decr
in class MutableGauge
public void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetric
snapshot
in class MutableMetric
builder
- the metrics record builderall
- if true, snapshot unchanged metrics as wellpublic void set(float value)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.