|
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)
Deprecated. |
void |
addGetTimeNanos(long nanos)
Adds time taken for a get operation in the cache |
void |
cacheHitInMemory()
Called on a cache hit in the MemoryStore |
void |
cacheHitOffHeap()
Called on a cache hit in the off-heap |
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 |
cacheMissInMemory()
Called on a cache miss in the MemoryStore |
void |
cacheMissNotFound()
Called when an element is not found in the cache |
void |
cacheMissOffHeap()
Called on a cache miss in the off-heap |
void |
cacheMissOnDisk()
Called on a cache miss in the DiskStore |
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 |
void |
xaCommit()
Called when the Cache's XAResource has been asked to commit |
void |
xaRecovered(int count)
Called when the Cache's XAResource has recovered one or more XID |
void |
xaRollback()
Called when the Cache's XAResource has been asked to rollback |
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 cacheHitOffHeap()
void cacheHitOnDisk()
void cacheMissNotFound()
void cacheMissInMemory()
void cacheMissOffHeap()
void cacheMissOnDisk()
void cacheMissExpired()
void xaCommit()
void xaRollback()
void xaRecovered(int count)
@Deprecated void addGetTimeMillis(long millis)
millis
- void addGetTimeNanos(long nanos)
nanos
- void setStatisticsAccuracy(int statisticsAccuracy)
statisticsAccuracy
- one of Statistics#STATISTICS_ACCURACY_BEST_EFFORT,
Statistics#STATISTICS_ACCURACY_GUARANTEED,
Statistics#STATISTICS_ACCURACY_NONEvoid registerCacheUsageListener(CacheUsageListener cacheUsageListener) throws 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
IllegalStateException
void removeCacheUsageListener(CacheUsageListener cacheUsageListener) throws IllegalStateException
CacheUsageListener
, if any.
Depends on the Object.equals(Object)
method.
IllegalStateException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |