E - the element typepublic class SampledRateCounterProxy<E extends Number> extends SampledCounterProxy<E> implements SampledRateCounter
rate| Constructor and Description |
|---|
SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)
Instantiates a new sampled rate counter proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrement(long numerator,
long denominator)
Decrements the numerator and denominator by the passed values
|
void |
increment(long numerator,
long denominator)
Increments the numerator and denominator by the passed values
|
void |
setDenominatorValue(long newValue)
Sets the value of the denominator to the passed value
|
void |
setNumeratorValue(long newValue)
Sets the value of the numerator to the passed value
|
void |
setValue(long numerator,
long denominator)
Sets the values of the numerator and denominator to the passed values
|
decrement, decrement, getAllSampleValues, getAndReset, getAndSet, getMostRecentSample, getValue, increment, increment, setValue, shutdown, sortAndPresentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllSampleValues, getAndReset, getMostRecentSample, shutdownpublic SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)
rate - the ratepublic void increment(long numerator,
long denominator)
SampledRateCounterincrement in interface SampledRateCounterpublic void decrement(long numerator,
long denominator)
SampledRateCounterdecrement in interface SampledRateCounterpublic void setValue(long numerator,
long denominator)
SampledRateCountersetValue in interface SampledRateCounterpublic void setNumeratorValue(long newValue)
SampledRateCountersetNumeratorValue in interface SampledRateCounterpublic void setDenominatorValue(long newValue)
SampledRateCountersetDenominatorValue in interface SampledRateCounterCopyright 2001-2021, Terracotta, Inc.