public class MetricMutableCounterInt extends MetricMutableCounter<Integer>
description, name| 构造器和说明 |
|---|
MetricMutableCounterInt(String name,
String description,
int initValue)
Construct a mutable int counter
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
incr()
Increment the metric value by 1.
|
void |
incr(int 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<Integer>public void incr(int 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