@InterfaceAudience.Public @InterfaceStability.Evolving public class MutableCounterLong extends MutableCounter
コンストラクタと説明 |
---|
MutableCounterLong(MetricsInfo info,
long initValue) |
修飾子とタイプ | メソッドと説明 |
---|---|
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() |
info
changed, clearChanged, setChanged, snapshot
public MutableCounterLong(MetricsInfo info, long initValue)
public void incr()
MutableCounter
incr
クラス内 MutableCounter
public void incr(long delta)
delta
- of the incrementpublic long value()
public void snapshot(MetricsRecordBuilder builder, boolean all)
MutableMetric
snapshot
クラス内 MutableMetric
builder
- the metrics record builderall
- if true, snapshot unchanged metrics as wellCopyright © 2016 Apache Software Foundation. All rights reserved.