public interface CacheEventListener
extends java.io.Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dispose()
即将关闭缓存
|
void |
notifyElementEvicted(FRCache cache,
Unity unity)
通知缓存元素被驱逐
|
void |
notifyElementExpired(FRCache cache,
Unity unity)
通知缓存元素到期
|
void |
notifyElementPut(FRCache cache,
Unity unity)
通知添加了缓存元素
|
void |
notifyElementRemoved(FRCache cache,
Unity unity)
通知移除了缓存元素
|
void |
notifyElementUpdated(FRCache cache,
Unity unity)
通知更新了缓存元素
|
void |
notifyRemoveAll(FRCache cache)
通知移除了所有缓存元素
|
void notifyElementRemoved(FRCache cache, Unity unity) throws CacheException
cache - 缓存unity - 移除的元素CacheExceptionvoid notifyElementPut(FRCache cache, Unity unity) throws CacheException
cache - 缓存unity - 添加的元素CacheExceptionvoid notifyElementUpdated(FRCache cache, Unity unity) throws CacheException
cache - 缓存unity - 更新的缓存元素CacheExceptionvoid notifyElementExpired(FRCache cache, Unity unity)
cache - 缓存unity - 到期的缓存元素void notifyElementEvicted(FRCache cache, Unity unity)
cache - 缓存unity - 被驱逐的元素void notifyRemoveAll(FRCache cache)
cache - 缓存void dispose()