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, snapshot
public void incr()
MetricMutableCounter
incr
在类中 MetricMutableCounter<Long>
public void incr(long 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