|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.counter.CounterImpl
net.sf.ehcache.util.counter.sampled.SampledCounterImpl
net.sf.ehcache.util.counter.sampled.SampledRateCounterImpl
public class SampledRateCounterImpl
An implementation of SampledRateCounter
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.util.counter.sampled.SampledCounterImpl |
|---|
history, resetOnSample |
| Constructor Summary | |
|---|---|
SampledRateCounterImpl(SampledRateCounterConfig config)
Constructor accepting the config |
|
| Method Summary | |
|---|---|
long |
decrement()
throws UnsupportedOperationException |
long |
decrement(long amount)
throws UnsupportedOperationException |
void |
decrement(long numerator,
long denominator)
Decrements the numerator and denominator by the passed values |
long |
getAndReset()
Returns the current value of the counter and resets it to 0 |
long |
getAndSet(long newValue)
throws UnsupportedOperationException |
long |
getMaxValue()
throws UnsupportedOperationException |
long |
getMinValue()
throws UnsupportedOperationException |
long |
getValue()
Gets current value of the counter |
long |
increment()
throws UnsupportedOperationException |
long |
increment(long amount)
throws UnsupportedOperationException |
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 newValue)
throws UnsupportedOperationException |
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.util.counter.sampled.SampledCounterImpl |
|---|
getAllSampleValues, getIntervalMillis, getMostRecentSample, getTimerTask, shutdown |
| 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, getMostRecentSample, shutdown |
| Constructor Detail |
|---|
public SampledRateCounterImpl(SampledRateCounterConfig config)
config - | Method Detail |
|---|
public void setValue(long numerator,
long denominator)
setValue in interface SampledRateCounter
public void increment(long numerator,
long denominator)
increment in interface SampledRateCounter
public void decrement(long numerator,
long denominator)
decrement in interface SampledRateCounterpublic void setDenominatorValue(long newValue)
setDenominatorValue in interface SampledRateCounterpublic void setNumeratorValue(long newValue)
setNumeratorValue in interface SampledRateCounterpublic long getValue()
getValue in interface CountergetValue in class CounterImplpublic long getAndReset()
getAndReset in interface SampledCountergetAndReset in class SampledCounterImplpublic long getAndSet(long newValue)
UnsupportedOperationException
getAndSet in interface CountergetAndSet in class CounterImplpublic void setValue(long newValue)
UnsupportedOperationException
setValue in interface CountersetValue in class CounterImplpublic long decrement()
UnsupportedOperationException
decrement in interface Counterdecrement in class CounterImplpublic long decrement(long amount)
UnsupportedOperationException
decrement in interface Counterdecrement in class CounterImplpublic long getMaxValue()
UnsupportedOperationException
public long getMinValue()
UnsupportedOperationException
public long increment()
UnsupportedOperationException
increment in interface Counterincrement in class CounterImplpublic long increment(long amount)
UnsupportedOperationException
increment in interface Counterincrement in class CounterImpl
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||