public class MetricMutableGaugeInt extends MetricMutableGauge<Integer>
description, name
构造器和说明 |
---|
MetricMutableGaugeInt(String name,
String description,
int initValue)
Construct a mutable int gauge metric
|
限定符和类型 | 方法和说明 |
---|---|
void |
decr()
Decrement the value of the metric by 1
|
void |
decr(int delta)
decrement by delta
|
void |
incr()
Increment the value of the metric by 1
|
void |
incr(int delta)
Increment by delta
|
void |
set(int value)
Set the value of the metric
|
void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot/snapshot of the metric
|
changed, clearChanged, setChanged, snapshot
public void incr()
MetricMutableGauge
incr
在类中 MetricMutableGauge<Integer>
public void incr(int delta)
delta
- of the incrementpublic void decr()
MetricMutableGauge
decr
在类中 MetricMutableGauge<Integer>
public void decr(int delta)
delta
- of the decrementpublic void set(int value)
value
- to setpublic 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