org.quartz.utils.counter.sampled
Class SampledRateCounterConfig
java.lang.Object
org.quartz.utils.counter.CounterConfig
org.quartz.utils.counter.sampled.SampledCounterConfig
org.quartz.utils.counter.sampled.SampledRateCounterConfig
public class SampledRateCounterConfig
- extends SampledCounterConfig
An implementation of SampledCounterConfig
- Since:
- 1.8
- Author:
- Abhishek Sanoujam
Constructor Summary |
SampledRateCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample)
Constructor accepting the interval time in seconds, history-size and
whether counters should reset on each sample or not. |
SampledRateCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample,
long initialNumeratorValue,
long initialDenominatorValue)
Constructor accepting the interval time in seconds, history-size and
whether counters should reset on each sample or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampledRateCounterConfig
public SampledRateCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample)
- Constructor accepting the interval time in seconds, history-size and
whether counters should reset on each sample or not.
Initial values of both numerator and denominator are zeroes
- Parameters:
intervalSecs
- historySize
- isResetOnSample
-
SampledRateCounterConfig
public SampledRateCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample,
long initialNumeratorValue,
long initialDenominatorValue)
- Constructor accepting the interval time in seconds, history-size and
whether counters should reset on each sample or not. Also the initial
values for the numerator and the denominator
- Parameters:
intervalSecs
- historySize
- isResetOnSample
- initialNumeratorValue
- initialDenominatorValue
-
createCounter
public Counter createCounter()
- Creates and returns a Counter based on the initial value
- Overrides:
createCounter
in class SampledCounterConfig
- Returns:
- The counter created by this config
Copyright 2001-2015, Terracotta, Inc.