Package io.dropwizard.metrics5
Class DefaultSettableGauge<T>
java.lang.Object
io.dropwizard.metrics5.DefaultSettableGauge<T>
- All Implemented Interfaces:
Gauge<T>
,Metric
,SettableGauge<T>
Similar to
Gauge
, but metric value is updated via calling setValue(T)
instead.-
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance with no default value.DefaultSettableGauge
(T defaultValue) Create an instance with a default value. -
Method Summary
-
Constructor Details
-
DefaultSettableGauge
public DefaultSettableGauge()Create an instance with no default value. -
DefaultSettableGauge
Create an instance with a default value.- Parameters:
defaultValue
- default value
-
-
Method Details