public interface CacheAccessListener
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_INTERVAL
The access listener is only called each x accesses.
|
Modifier and Type | Method and 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.
|
static final int ACCESS_INTERVAL
void cacheAccessed(long accessCount)
ACCESS_INTERVAL
accessCount
- number of cache accesses since the last callvoid disposeCache(Cache cache)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.