|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.util.counter.CounterConfig net.sf.ehcache.util.counter.sampled.SampledCounterConfig
public class SampledCounterConfig
Config for a SampledCounter
Constructor Summary | |
---|---|
SampledCounterConfig(int intervalSecs,
int historySize,
boolean isResetOnSample,
long initialValue)
Make a new timed counter config (duh) |
Method Summary | |
---|---|
Counter |
createCounter()
Creates and returns a Counter based on the initial value |
int |
getHistorySize()
Returns the history size |
int |
getIntervalSecs()
Returns the interval time (seconds) |
boolean |
isResetOnSample()
Returns true if counters created from this config will reset on each sample |
Methods inherited from class net.sf.ehcache.util.counter.CounterConfig |
---|
getInitialValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampledCounterConfig(int intervalSecs, int historySize, boolean isResetOnSample, long initialValue)
intervalSecs
- the interval (in seconds) between samplinghistorySize
- number of counter samples that will be retained in memoryisResetOnSample
- true if the counter should be reset to 0 upon each sampleinitialValue
- the initial value given to this counterMethod Detail |
---|
public int getHistorySize()
public int getIntervalSecs()
public boolean isResetOnSample()
public Counter createCounter()
createCounter
in class CounterConfig
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |