public class SampledRateCounterConfig extends SampledCounterConfig
SampledCounterConfig
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Counter |
createCounter()
Creates and returns a Counter based on the initial value
|
getHistorySize, getIntervalSecs, isResetOnSample
getInitialValue
public SampledRateCounterConfig(int intervalSecs, int historySize, boolean isResetOnSample)
intervalSecs
- historySize
- isResetOnSample
- public SampledRateCounterConfig(int intervalSecs, int historySize, boolean isResetOnSample, long initialNumeratorValue, long initialDenominatorValue)
intervalSecs
- historySize
- isResetOnSample
- initialNumeratorValue
- initialDenominatorValue
- public Counter createCounter()
createCounter
in class SampledCounterConfig
Copyright 2001-2019, Terracotta, Inc.