public class DefaultCounterService extends Object implements CounterService
CounterService
.Constructor and Description |
---|
DefaultCounterService(MetricWriter writer)
Create a
DefaultCounterService instance. |
public DefaultCounterService(MetricWriter writer)
DefaultCounterService
instance.writer
- the underlying writer used to manage metricspublic void increment(String metricName)
CounterService
increment
in interface CounterService
metricName
- the name of the counterpublic void decrement(String metricName)
CounterService
decrement
in interface CounterService
metricName
- the name of the counterpublic void reset(String metricName)
CounterService
reset
in interface CounterService
metricName
- the name of the counterCopyright © 2014. All rights reserved.