|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RateCounter
A simple long based rate counter.
| Method Summary | |
|---|---|
void |
decrement(long numerator,
long denominator)
Decrement the numerator and denominator by the given amounts. |
void |
increment(long numerator,
long denominator)
Increment the numerator and denominator by the given amounts. |
void |
setDenominatorValue(long newValue)
Set the denominator to the given value. |
void |
setNumeratorValue(long newValue)
Set the numerator to the given value. |
void |
setValue(long numerator,
long denominator)
Set the numerator and denominator to the given values. |
| Methods inherited from interface org.terracotta.counter.Statistic |
|---|
getAndReset, getValue |
| Method Detail |
|---|
void increment(long numerator,
long denominator)
void decrement(long numerator,
long denominator)
void setValue(long numerator,
long denominator)
numerator - new numerator valuedenominator - new denominator valuevoid setNumeratorValue(long newValue)
newValue - new numerator valuevoid setDenominatorValue(long newValue)
newValue - new denominator value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||