Top Description Fields Constructors Methods
net.sf.ehcache.management.sampled

public Class SampledRateCounterProxy<E extends java.lang.Number>

extends SampledCounterProxy<E extends Number>
implements SampledRateCounter
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.util.counter.sampled.SampledRateCounter, net.sf.ehcache.util.counter.sampled.SampledCounter, net.sf.ehcache.util.counter.Counter
Type Parameters
<E>
the element type
Imports
net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic, net.sf.ehcache.util.counter.sampled.SampledRateCounter

The Class SampledRateCounterProxy.
Author
cschanck

Field Summary

Inherited from net.sf.ehcache.management.sampled.SampledCounterProxy:
rate

Constructor Summary

AccessConstructor and Description
public
SampledRateCounterProxy(ExtendedStatistics.Statistic<E>
the rate
rate
)

Instantiates a new sampled rate counter proxy.

Method Summary

Modifier and TypeMethod and Description
public void
decrement(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.decrement.

Decrements the numerator and denominator by the passed values
public void
increment(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.increment.

Increments the numerator and denominator by the passed values
public void
setDenominatorValue(long newValue)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setDenominatorValue.

Sets the value of the denominator to the passed value
public void
setNumeratorValue(long newValue)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setNumeratorValue.

Sets the value of the numerator to the passed value
public void
setValue(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setValue.

Sets the values of the numerator and denominator to the passed values
Inherited from net.sf.ehcache.management.sampled.SampledCounterProxy:
decrementdecrementgetAllSampleValuesgetAndResetgetAndSetgetMostRecentSamplegetValueincrementincrementsetValueshutdownsortAndPresent

Constructor Detail

SampledRateCounterProxyback to summary
public SampledRateCounterProxy(ExtendedStatistics.Statistic<E> rate)

Instantiates a new sampled rate counter proxy.

Parameters
rate:ExtendedStatistics.Statistic<E>

the rate

Method Detail

decrementback to summary
public void decrement(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.decrement.

Doc from net.sf.ehcache.util.counter.sampled.SampledRateCounter.decrement.

Decrements the numerator and denominator by the passed values

Annotations
@Override
incrementback to summary
public void increment(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.increment.

Doc from net.sf.ehcache.util.counter.sampled.SampledRateCounter.increment.

Increments the numerator and denominator by the passed values

Annotations
@Override
setDenominatorValueback to summary
public void setDenominatorValue(long newValue)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setDenominatorValue.

Doc from net.sf.ehcache.util.counter.sampled.SampledRateCounter.setDenominatorValue.

Sets the value of the denominator to the passed value

Annotations
@Override
setNumeratorValueback to summary
public void setNumeratorValue(long newValue)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setNumeratorValue.

Doc from net.sf.ehcache.util.counter.sampled.SampledRateCounter.setNumeratorValue.

Sets the value of the numerator to the passed value

Annotations
@Override
setValueback to summary
public void setValue(long numerator, long denominator)

Implements net.sf.ehcache.util.counter.sampled.SampledRateCounter.setValue.

Doc from net.sf.ehcache.util.counter.sampled.SampledRateCounter.setValue.

Sets the values of the numerator and denominator to the passed values

Annotations
@Override