|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LiveCacheStatisticsData
Interface that classes storing usage statistics of a Cache will implement
Method Summary | |
---|---|
void |
addGetTimeMillis(long millis)
Adds time taken for a get operation in the cache |
void |
cacheHitInMemory()
Called on a cache hit in the MemoryStore |
void |
cacheHitOnDisk()
Called on a cache hit in the DiskStore |
void |
cacheMissExpired()
Called when an element is found in the cache but already expired |
void |
cacheMissNotFound()
Called when an element is not found in the cache |
void |
clearStatistics()
Clear existing statistics |
void |
registerCacheUsageListener(CacheUsageListener cacheUsageListener)
Registers a CacheUsageListener which will be notified of the
cache
usage. |
void |
removeCacheUsageListener(CacheUsageListener cacheUsageListener)
Remove an already registered CacheUsageListener , if any. |
void |
setStatisticsAccuracy(int statisticsAccuracy)
Sets the statistics accuracy. |
void |
setStatisticsEnabled(boolean enableStatistics)
Enabled/Disabled statistics |
Methods inherited from interface net.sf.ehcache.event.CacheEventListener |
---|
clone, dispose, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll |
Method Detail |
---|
void setStatisticsEnabled(boolean enableStatistics)
enableStatistics
- void clearStatistics()
void cacheHitInMemory()
void cacheHitOnDisk()
void cacheMissNotFound()
void cacheMissExpired()
void addGetTimeMillis(long millis)
millis
- void setStatisticsAccuracy(int statisticsAccuracy)
statisticsAccuracy
- one of Statistics#STATISTICS_ACCURACY_BEST_EFFORT,
Statistics#STATISTICS_ACCURACY_GUARANTEED,
Statistics#STATISTICS_ACCURACY_NONEvoid registerCacheUsageListener(CacheUsageListener cacheUsageListener) throws java.lang.IllegalStateException
CacheUsageListener
which will be notified of the
cache
usage.
Implementations of CacheUsageListener
should override the Object.equals(Object)
and Object.hashCode()
methods
as it is used for
equality check
java.lang.IllegalStateException
void removeCacheUsageListener(CacheUsageListener cacheUsageListener) throws java.lang.IllegalStateException
CacheUsageListener
, if any.
Depends on the Object.equals(Object)
method.
java.lang.IllegalStateException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |