Package net.sf.ehcache.util.counter
Class CounterManagerImpl
- java.lang.Object
-
- net.sf.ehcache.util.counter.CounterManagerImpl
-
- All Implemented Interfaces:
CounterManager
public class CounterManagerImpl extends java.lang.Object implements CounterManager
An implementation of aCounterManager.- Since:
- 1.7
- Author:
- Abhishek Sanoujam
-
-
Constructor Summary
Constructors Constructor Description CounterManagerImpl(FailSafeTimer timer)Constructor that accepts a timer that will be used for scheduling sampled counter if any is created
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCounter(Counter counter)Adds a counter.CountercreateCounter(CounterConfig config)Creates a Counter based on the passed configvoidshutdown()Shuts down this counter managervoidshutdownCounter(Counter counter)Shuts down the counter
-
-
-
Constructor Detail
-
CounterManagerImpl
public CounterManagerImpl(FailSafeTimer timer)
Constructor that accepts a timer that will be used for scheduling sampled counter if any is created
-
-
Method Detail
-
shutdown
public void shutdown()
Shuts down this counter manager- Specified by:
shutdownin interfaceCounterManager
-
createCounter
public Counter createCounter(CounterConfig config)
Creates a Counter based on the passed config- Specified by:
createCounterin interfaceCounterManager- Returns:
- The counter created and managed by this CounterManager
-
addCounter
public void addCounter(Counter counter)
Adds a counter.- Specified by:
addCounterin interfaceCounterManager
-
shutdownCounter
public void shutdownCounter(Counter counter)
Shuts down the counter- Specified by:
shutdownCounterin interfaceCounterManager
-
-