ehcache

net.sf.ehcache.management.sampled
Class SampledRateCounterProxy<E extends Number>

java.lang.Object
  extended by net.sf.ehcache.management.sampled.SampledCounterProxy<E>
      extended by net.sf.ehcache.management.sampled.SampledRateCounterProxy<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Counter, SampledCounter, SampledRateCounter

public class SampledRateCounterProxy<E extends 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
SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)
          Instantiates a new sampled rate counter proxy.
 
Method Summary
 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
 
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.sampled.SampledCounter
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
 
Methods inherited from interface net.sf.ehcache.util.counter.Counter
decrement, decrement, getAndSet, getValue, increment, increment, setValue
 

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: SampledRateCounter
Increments the numerator and denominator by the passed values

Specified by:
increment in interface SampledRateCounter

decrement

public void decrement(long numerator,
                      long denominator)
Description copied from interface: SampledRateCounter
Decrements the numerator and denominator by the passed values

Specified by:
decrement in interface SampledRateCounter

setValue

public void setValue(long numerator,
                     long denominator)
Description copied from interface: SampledRateCounter
Sets the values of the numerator and denominator to the passed values

Specified by:
setValue in interface SampledRateCounter

setNumeratorValue

public void setNumeratorValue(long newValue)
Description copied from interface: SampledRateCounter
Sets the value of the numerator to the passed value

Specified by:
setNumeratorValue in interface SampledRateCounter

setDenominatorValue

public void setDenominatorValue(long newValue)
Description copied from interface: SampledRateCounter
Sets the value of the denominator to the passed value

Specified by:
setDenominatorValue in interface SampledRateCounter

ehcache

Copyright 2001-2014, Terracotta, Inc.