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
MetricCollectors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrementCounter(String name) Decrement a Counter by one.voidincrementCounter(String name) Increment a Counter by one.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:MetricCollectorDecrement a Counter by one.- Specified by:
decrementCounterin interfaceMetricCollector- Parameters:
name- the name of the counter.
-
incrementCounter
Description copied from interface:MetricCollectorIncrement a Counter by one.- Specified by:
incrementCounterin interfaceMetricCollector- Parameters:
name- the name of the counter.
-