SampledCounterConfig
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| 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. |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
| public Counter | createCounter()
Overrides net. |
| initialDenominatorValue | back to summary |
|---|---|
| private final long initialDenominatorValue | |
| initialNumeratorValue | back to summary |
|---|---|
| private final long initialNumeratorValue | |
| SampledRateCounterConfig | back to summary |
|---|---|
| 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 | |
| SampledRateCounterConfig | back to summary |
|---|---|
| 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 | |
| createCounter | back to summary |
|---|---|
| public Counter createCounter() Overrides net. Doc from net. Creates and returns a Counter based on the initial value
| |