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, snapshot
public void incr()
MetricMutableCounter
incr
在类中 MetricMutableCounter<Integer>
public void incr(int delta)
delta
- of the incrementpublic void snapshot(MetricsRecordBuilder builder, boolean all)
MetricMutable
snapshot
在类中 MetricMutable
builder
- the metrics record builderall
- if true, snapshot unchanged metrics as wellCopyright © 2009 The Apache Software Foundation