@InterfaceAudience.Public @InterfaceStability.Evolving public class MutableCounterLong extends MutableCounter
| Constructor and Description |
|---|
MutableCounterLong(MetricsInfo info,
long initValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
incr()
Increment the metric value by 1.
|
void |
incr(long delta)
Increment the value by a delta
|
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric
|
long |
value() |
infochanged, clearChanged, setChanged, snapshotpublic MutableCounterLong(MetricsInfo info, long initValue)
public void incr()
MutableCounterincr in class MutableCounterpublic void incr(long delta)
delta - of the incrementpublic long value()
public void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetricsnapshot in class MutableMetricbuilder - the metrics record builderall - if true, snapshot unchanged metrics as wellCopyright © 2019 Apache Software Foundation. All Rights Reserved.