|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 rate| Method Detail |
|---|
public TimeStampedCounterValue getMostRecentSample()
SampledCounter
getMostRecentSample in interface SampledCounterpublic TimeStampedCounterValue[] getAllSampleValues()
SampledCounter
getAllSampleValues in interface SampledCounterprotected TimeStampedCounterValue[] sortAndPresent(List<TimeStampedCounterValue> arr)
arr -
public void setValue(long newValue)
Counter
setValue in interface Counterpublic long increment()
Counter
increment in interface Counterpublic long decrement()
Counter
decrement in interface Counterpublic long getAndSet(long newValue)
Counter
getAndSet in interface Counterpublic long getValue()
Counter
getValue in interface Counterpublic long increment(long amount)
Counter
increment in interface Counterpublic long decrement(long amount)
Counter
decrement in interface Counterpublic void shutdown()
SampledCounter
shutdown in interface SampledCounterpublic long getAndReset()
SampledCounter
getAndReset in interface SampledCounter
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||