Top Description Methods
net.sf.ehcache.util.counter.sampled

public Interface SampledRateCounter

extends SampledCounter
Known Direct Implementers
net.sf.ehcache.util.counter.sampled.SampledRateCounterImpl, net.sf.ehcache.management.sampled.SampledRateCounterProxy

Interface of a sampled rate counter -- a counter that keeps sampled values of rates
Author
Abhishek Sanoujam
Since
1.7

Method Summary

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

Decrements the numerator and denominator by the passed values

public void
increment(long numerator, long denominator)

Increments the numerator and denominator by the passed values

public void
setDenominatorValue(long newValue)

Sets the value of the denominator to the passed value

public void
setNumeratorValue(long newValue)

Sets the value of the numerator to the passed value

public void
setValue(long numerator, long denominator)

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

Inherited from net.sf.ehcache.util.counter.sampled.SampledCounter:
getAllSampleValuesgetAndResetgetMostRecentSampleshutdown

Method Detail

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

Decrements the numerator and denominator by the passed values

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

Increments the numerator and denominator by the passed values

setDenominatorValueback to summary
public void setDenominatorValue(long newValue)

Sets the value of the denominator to the passed value

setNumeratorValueback to summary
public void setNumeratorValue(long newValue)

Sets the value of the numerator to the passed value

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

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