Package org.quartz.utils.counter
Class CounterConfig
- java.lang.Object
-
- org.quartz.utils.counter.CounterConfig
-
- Direct Known Subclasses:
SampledCounterConfig
public class CounterConfig extends java.lang.Object
Config for a simple Counter- Since:
- 1.8
- Author:
- Abhishek Sanoujam
-
-
Constructor Summary
Constructors Constructor Description CounterConfig(long initialValue)
Creates a config with the initial value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Counter
createCounter()
Creates and returns a Counter based on the initial valuelong
getInitialValue()
Gets the initial value
-
-
-
Method Detail
-
getInitialValue
public final long getInitialValue()
Gets the initial value- Returns:
- the initial value of counters created by this config
-
createCounter
public Counter createCounter()
Creates and returns a Counter based on the initial value- Returns:
- The counter created by this config
-
-