Class SampledRateCounterProxy<E extends java.lang.Number>
- java.lang.Object
-
- net.sf.ehcache.management.sampled.SampledCounterProxy<E>
-
- net.sf.ehcache.management.sampled.SampledRateCounterProxy<E>
-
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Counter,SampledCounter,SampledRateCounter
public class SampledRateCounterProxy<E extends java.lang.Number> extends SampledCounterProxy<E> implements SampledRateCounter
The Class SampledRateCounterProxy.- Author:
- cschanck
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.management.sampled.SampledCounterProxy
rate
-
-
Constructor Summary
Constructors Constructor Description SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)Instantiates a new sampled rate counter proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrement(long numerator, long denominator)Decrements the numerator and denominator by the passed valuesvoidincrement(long numerator, long denominator)Increments the numerator and denominator by the passed valuesvoidsetDenominatorValue(long newValue)Sets the value of the denominator to the passed valuevoidsetNumeratorValue(long newValue)Sets the value of the numerator to the passed valuevoidsetValue(long numerator, long denominator)Sets the values of the numerator and denominator to the passed values-
Methods inherited from class net.sf.ehcache.management.sampled.SampledCounterProxy
decrement, decrement, getAllSampleValues, getAndReset, getAndSet, getMostRecentSample, getValue, increment, increment, setValue, shutdown, sortAndPresent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.ehcache.util.counter.Counter
decrement, decrement, getAndSet, getValue, increment, increment, setValue
-
Methods inherited from interface net.sf.ehcache.util.counter.sampled.SampledCounter
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
-
-
-
-
Constructor Detail
-
SampledRateCounterProxy
public SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)
Instantiates a new sampled rate counter proxy.- Parameters:
rate- the rate
-
-
Method Detail
-
increment
public void increment(long numerator, long denominator)Description copied from interface:SampledRateCounterIncrements the numerator and denominator by the passed values- Specified by:
incrementin interfaceSampledRateCounter
-
decrement
public void decrement(long numerator, long denominator)Description copied from interface:SampledRateCounterDecrements the numerator and denominator by the passed values- Specified by:
decrementin interfaceSampledRateCounter
-
setValue
public void setValue(long numerator, long denominator)Description copied from interface:SampledRateCounterSets the values of the numerator and denominator to the passed values- Specified by:
setValuein interfaceSampledRateCounter
-
setNumeratorValue
public void setNumeratorValue(long newValue)
Description copied from interface:SampledRateCounterSets the value of the numerator to the passed value- Specified by:
setNumeratorValuein interfaceSampledRateCounter
-
setDenominatorValue
public void setDenominatorValue(long newValue)
Description copied from interface:SampledRateCounterSets the value of the denominator to the passed value- Specified by:
setDenominatorValuein interfaceSampledRateCounter
-
-