public abstract class CacheEventAdapter extends java.lang.Object implements CacheEventListener
构造器和说明 |
---|
CacheEventAdapter() |
限定符和类型 | 方法和说明 |
---|---|
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)
通知移除了所有缓存元素
|
public void dispose()
dispose
在接口中 CacheEventListener
public void notifyElementEvicted(FRCache cache, Unity unity)
notifyElementEvicted
在接口中 CacheEventListener
cache
- 缓存unity
- 被驱逐的元素public void notifyElementExpired(FRCache cache, Unity unity)
notifyElementExpired
在接口中 CacheEventListener
cache
- 缓存unity
- 到期的缓存元素public void notifyElementPut(FRCache cache, Unity unity) throws CacheException
notifyElementPut
在接口中 CacheEventListener
cache
- 缓存unity
- 添加的元素CacheException
public void notifyElementRemoved(FRCache cache, Unity unity) throws CacheException
notifyElementRemoved
在接口中 CacheEventListener
cache
- 缓存unity
- 移除的元素CacheException
public void notifyElementUpdated(FRCache cache, Unity unity) throws CacheException
notifyElementUpdated
在接口中 CacheEventListener
cache
- 缓存unity
- 更新的缓存元素CacheException
public void notifyRemoveAll(FRCache cache)
notifyRemoveAll
在接口中 CacheEventListener
cache
- 缓存