Package org.quartz.utils.counter.sampled
Interface SampledRateCounter
-
- All Superinterfaces:
Counter
,SampledCounter
- All Known Implementing Classes:
SampledRateCounterImpl
public interface SampledRateCounter extends SampledCounter
Interface of a sampled rate counter -- a counter that keeps sampled values of rates- Since:
- 1.8
- Author:
- Abhishek Sanoujam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
decrement(long numerator, long denominator)
Decrements the numerator and denominator by the passed valuesvoid
increment(long numerator, long denominator)
Increments the numerator and denominator by the passed valuesvoid
setDenominatorValue(long newValue)
Sets the value of the denominator to the passed valuevoid
setNumeratorValue(long newValue)
Sets the value of the numerator to the passed valuevoid
setValue(long numerator, long denominator)
Sets the values of the numerator and denominator to the passed values-
Methods inherited from interface org.quartz.utils.counter.Counter
decrement, decrement, getAndSet, getValue, increment, increment, setValue
-
Methods inherited from interface org.quartz.utils.counter.sampled.SampledCounter
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
-
-
-
-
Method Detail
-
increment
void increment(long numerator, long denominator)
Increments the numerator and denominator by the passed values- Parameters:
numerator
-denominator
-
-
decrement
void decrement(long numerator, long denominator)
Decrements the numerator and denominator by the passed values- Parameters:
numerator
-denominator
-
-
setValue
void setValue(long numerator, long denominator)
Sets the values of the numerator and denominator to the passed values- Parameters:
numerator
-denominator
-
-
setNumeratorValue
void setNumeratorValue(long newValue)
Sets the value of the numerator to the passed value- Parameters:
newValue
-
-
setDenominatorValue
void setDenominatorValue(long newValue)
Sets the value of the denominator to the passed value- Parameters:
newValue
-
-
-