Package net.sf.ehcache.util.counter
Interface CounterManager
-
- All Known Implementing Classes:
CounterManagerImpl
public interface CounterManagerA Counter Manager that accepts a config to create counters. Creates counter's based onCounterConfig. This manages the lifycycle of a counter- Since:
- 1.7
- Author:
- Abhishek Sanoujam
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
createCounter
Counter createCounter(CounterConfig config)
Creates a Counter based on the passed config- Parameters:
config-- Returns:
- The counter created and managed by this CounterManager
-
addCounter
void addCounter(Counter counter)
Adds a counter.
-
shutdown
void shutdown()
Shuts down this counter manager
-
shutdownCounter
void shutdownCounter(Counter counter)
Shuts down the counter- Parameters:
counter-
-
-