Package net.spy.memcached.metrics
Class AbstractMetricCollector
java.lang.Object
net.spy.memcached.metrics.AbstractMetricCollector
- All Implemented Interfaces:
MetricCollector
- Direct Known Subclasses:
DefaultMetricCollector
,NoopMetricCollector
This abstract class implements methods needed by all
MetricCollector
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decrementCounter
(String name) Decrement a Counter by one.void
incrementCounter
(String name) Increment a Counter by one.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.spy.memcached.metrics.MetricCollector
addCounter, addHistogram, addMeter, decrementCounter, incrementCounter, markMeter, removeCounter, removeHistogram, removeMeter, updateHistogram
-
Constructor Details
-
AbstractMetricCollector
public AbstractMetricCollector()
-
-
Method Details
-
decrementCounter
Description copied from interface:MetricCollector
Decrement a Counter by one.- Specified by:
decrementCounter
in interfaceMetricCollector
- Parameters:
name
- the name of the counter.
-
incrementCounter
Description copied from interface:MetricCollector
Increment a Counter by one.- Specified by:
incrementCounter
in interfaceMetricCollector
- Parameters:
name
- the name of the counter.
-