Package org.apache.jackrabbit.core.cache
Interface CacheAccessListener
-
- All Known Implementing Classes:
AbstractBundlePersistenceManager
,BundleDbPersistenceManager
,BundleFsPersistenceManager
,CacheManager
,DerbyPersistenceManager
,H2PersistenceManager
,InMemBundlePersistenceManager
,MSSqlPersistenceManager
,MySqlPersistenceManager
,Oracle9PersistenceManager
,OraclePersistenceManager
,PostgreSQLPersistenceManager
public interface CacheAccessListener
The cache access listener can be registered to a class. From time to time, the method cacheAccess is called.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCESS_INTERVAL
The access listener is only called each x accesses.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cacheAccessed(long accessCount)
The cache calls this method after a number of cache accesses.
For statistical purposes, the cache access count since the last call is included.void
disposeCache(Cache cache)
Called after the cache is no longer used.
-
-
-
Field Detail
-
ACCESS_INTERVAL
static final int ACCESS_INTERVAL
The access listener is only called each x accesses.- See Also:
- Constant Field Values
-
-
Method Detail
-
cacheAccessed
void cacheAccessed(long accessCount)
The cache calls this method after a number of cache accesses.
For statistical purposes, the cache access count since the last call is included. In normal circumstances this is equal toACCESS_INTERVAL
- Parameters:
accessCount
- number of cache accesses since the last call
-
disposeCache
void disposeCache(Cache cache)
Called after the cache is no longer used.
-
-