public class DefaultCounterService extends Object implements CounterService
CounterService
.Constructor and Description |
---|
DefaultCounterService(MetricRepository repository)
Create a
DefaultCounterService instance. |
public DefaultCounterService(MetricRepository repository)
DefaultCounterService
instance.repository
- the underlying repository used to manage metricspublic void increment(String metricName)
CounterService
increment
in interface CounterService
metricName
- the name of the metricpublic void decrement(String metricName)
CounterService
decrement
in interface CounterService
metricName
- the name of the metricpublic void reset(String metricName)
CounterService
reset
in interface CounterService
metricName
- the name of the metricCopyright © 2013. All rights reserved.