public class MetricMutableGaugeLong extends MetricMutableGauge<Long>
description, name| 构造器和说明 |
|---|
MetricMutableGaugeLong(String name,
String description,
long initValue)
Construct a mutable long gauge metric
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
decr()
Decrement the value of the metric by 1
|
void |
decr(long delta)
decrement by delta
|
void |
incr()
Increment the value of the metric by 1
|
void |
incr(long delta)
Increment by delta
|
void |
set(long value)
Set the value of the metric
|
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot/snapshot of the metric
|
changed, clearChanged, setChanged, snapshotpublic void incr()
MetricMutableGaugeincr 在类中 MetricMutableGauge<Long>public void incr(long delta)
delta - of the incrementpublic void decr()
MetricMutableGaugedecr 在类中 MetricMutableGauge<Long>public void decr(long delta)
delta - of the decrementpublic void set(long value)
value - to setpublic void snapshot(MetricsRecordBuilder builder, boolean all)
MetricMutablesnapshot 在类中 MetricMutablebuilder - the metrics record builderall - if true, snapshot unchanged metrics as wellCopyright © 2009 The Apache Software Foundation