public interface RichGaugeService
Modifier and Type | Method and Description |
---|---|
RichGauge |
getOrCreate(java.lang.String name)
Returns an existing gauge for the given name or creates a new gauge set to zero
|
void |
reset(java.lang.String name)
Reset the gauge to zero and reset any accumulated average, max and min values
|
void |
setValue(java.lang.String name,
double value)
Sets the current value of the gauge.
|
RichGauge getOrCreate(java.lang.String name)
name
- name of the gaugejava.lang.IllegalArgumentException
- in case the given name is nullvoid setValue(java.lang.String name, double value)
name
- the gauge namevalue
- the value of the gaugejava.lang.IllegalArgumentException
- in case the given name is nullvoid reset(java.lang.String name)
name
- the gauge namejava.lang.IllegalArgumentException
- in case the given name is null