|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheManagerEventListener
Allows implementers to register callback methods that will be executed when a
CacheManager
event occurs.
The events include:
Cache
Cache
CacheEventListener
Method Summary | |
---|---|
void |
notifyCacheAdded(java.lang.String cacheName)
Called immediately after a cache has been added and activated. |
void |
notifyCacheRemoved(java.lang.String cacheName)
Called immediately after a cache has been disposed and removed. |
Method Detail |
---|
void notifyCacheAdded(java.lang.String cacheName)
Status.STATUS_UNINITIALISED
to
Status.STATUS_ALIVE
. Care should be taken on processing that
notification because:
CacheManager.getEhcache(String)
will cause a deadlock.
cacheName
- the name of the Cache
the operation relates toCacheEventListener
void notifyCacheRemoved(java.lang.String cacheName)
CacheEventListener
status changed will also be triggered. Any
attempt from that notification to access CacheManager will also result in a deadlock.
cacheName
- the name of the Cache
the operation relates to
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |