public class DefaultGaugeService extends Object implements GaugeService
GaugeService
.Constructor and Description |
---|
DefaultGaugeService(MetricWriter writer)
Create a
DefaultCounterService instance. |
public DefaultGaugeService(MetricWriter writer)
DefaultCounterService
instance.writer
- the underlying writer used to manage metricspublic void submit(String metricName, double value)
GaugeService
submit
in interface GaugeService
metricName
- the name of the gauge to setvalue
- the value of the gaugeCopyright © 2014. All rights reserved.