@Public @Evolving public class MutableGaugeLong extends MutableGauge
| Modifier and Type | Method | Description |
|---|---|---|
void |
decr() |
Decrement the value of the metric by 1
|
void |
decr(long delta) |
decrement by delta
|
void |
incr() |
Increment the value of the metric by 1
|
void |
incr(long delta) |
Increment by delta
|
void |
set(long value) |
Set the value of the metric
|
void |
snapshot(MetricsRecordBuilder builder,
boolean all) |
Get a snapshot of the metric
|
java.lang.String |
toString() |
|
long |
value() |
infochanged, clearChanged, setChanged, snapshotpublic long value()
public void incr()
MutableGaugeincr in class MutableGaugepublic void incr(long delta)
delta - of the incrementpublic void decr()
MutableGaugedecr in class MutableGaugepublic void decr(long delta)
delta - of the decrementpublic void set(long value)
value - to setpublic void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetricsnapshot in class MutableMetricbuilder - the metrics record builderall - if true, snapshot unchanged metrics as wellpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.