Package org.quartz.utils.counter
Class CounterManagerImpl
- java.lang.Object
-
- org.quartz.utils.counter.CounterManagerImpl
-
- All Implemented Interfaces:
CounterManager
public class CounterManagerImpl extends java.lang.Object implements CounterManager
An implementation of aCounterManager.- Since:
- 1.8
- Author:
- Abhishek Sanoujam
-
-
Constructor Summary
Constructors Constructor Description CounterManagerImpl(java.util.Timer 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 CountercreateCounter(CounterConfig config)Creates a Counter based on tha passed configvoidshutdown(boolean killTimer)Shuts down this counter managervoidshutdownCounter(Counter counter)Shuts down the counter
-
-
-
Method Detail
-
shutdown
public void shutdown(boolean killTimer)
Shuts down this counter manager- Specified by:
shutdownin interfaceCounterManager
-
createCounter
public Counter createCounter(CounterConfig config)
Creates a Counter based on tha passed config- Specified by:
createCounterin interfaceCounterManager- Returns:
- The counter created and managed by this CounterManager
-
shutdownCounter
public void shutdownCounter(Counter counter)
Shuts down the counter- Specified by:
shutdownCounterin interfaceCounterManager
-
-