|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.management.sampled.SampledCounterProxy<E>
E
- the element typepublic class SampledCounterProxy<E extends Number>
The Class SampledCounterProxy.
Field Summary | |
---|---|
protected ExtendedStatistics.Statistic<E> |
rate
The rate. |
Constructor Summary | |
---|---|
SampledCounterProxy(ExtendedStatistics.Statistic<E> rate)
Instantiates a new sampled counter proxy. |
Method Summary | |
---|---|
long |
decrement()
Decrement the counter by 1 |
long |
decrement(long amount)
Decrement the counter by given amount |
TimeStampedCounterValue[] |
getAllSampleValues()
Returns all samples in history |
long |
getAndReset()
Returns the current value of the counter and resets it to 0 |
long |
getAndSet(long newValue)
Returns the value of the counter and sets it to the new value |
TimeStampedCounterValue |
getMostRecentSample()
Returns the most recent sampled value |
long |
getValue()
Gets current value of the counter |
long |
increment()
Increment the counter by 1 |
long |
increment(long amount)
Increment the counter by given amount |
void |
setValue(long newValue)
Sets the value of the counter to the supplied value |
void |
shutdown()
Shutdown this counter |
protected TimeStampedCounterValue[] |
sortAndPresent(List<TimeStampedCounterValue> arr)
Sort and present the List of values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ExtendedStatistics.Statistic<E extends Number> rate
Constructor Detail |
---|
public SampledCounterProxy(ExtendedStatistics.Statistic<E> rate)
rate
- the rateMethod Detail |
---|
public TimeStampedCounterValue getMostRecentSample()
SampledCounter
getMostRecentSample
in interface SampledCounter
public TimeStampedCounterValue[] getAllSampleValues()
SampledCounter
getAllSampleValues
in interface SampledCounter
protected TimeStampedCounterValue[] sortAndPresent(List<TimeStampedCounterValue> arr)
arr
-
public void setValue(long newValue)
Counter
setValue
in interface Counter
public long increment()
Counter
increment
in interface Counter
public long decrement()
Counter
decrement
in interface Counter
public long getAndSet(long newValue)
Counter
getAndSet
in interface Counter
public long getValue()
Counter
getValue
in interface Counter
public long increment(long amount)
Counter
increment
in interface Counter
public long decrement(long amount)
Counter
decrement
in interface Counter
public void shutdown()
SampledCounter
shutdown
in interface SampledCounter
public long getAndReset()
SampledCounter
getAndReset
in interface SampledCounter
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |