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, sortAndPresent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
public SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)
rate
- the ratepublic void increment(long numerator, long denominator)
SampledRateCounter
increment
in interface SampledRateCounter
public void decrement(long numerator, long denominator)
SampledRateCounter
decrement
in interface SampledRateCounter
public void setValue(long numerator, long denominator)
SampledRateCounter
setValue
in interface SampledRateCounter
public void setNumeratorValue(long newValue)
SampledRateCounter
setNumeratorValue
in interface SampledRateCounter
public void setDenominatorValue(long newValue)
SampledRateCounter
setDenominatorValue
in interface SampledRateCounter
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.