public class MetricMutableCounterLong extends MetricMutableCounter<Long>
description, name| 构造器和说明 |
|---|
MetricMutableCounterLong(String name,
String description,
long initValue)
Construct a mutable long counter
|
| 限定符和类型 | 方法和说明 |
|---|---|
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/snapshot of the metric
|
changed, clearChanged, setChanged, snapshotpublic void incr()
MetricMutableCounterincr 在类中 MetricMutableCounter<Long>public void incr(long delta)
delta - of the incrementpublic void snapshot(MetricsRecordBuilder builder, boolean all)
MetricMutablesnapshot 在类中 MetricMutablebuilder - the metrics record builderall - if true, snapshot unchanged metrics as wellCopyright © 2009 The Apache Software Foundation