org.ehcache.events
Interface CacheManagerListener
- All Superinterfaces:
- StateChangeListener
- All Known Implementing Classes:
- DefaultManagementRegistry
public interface CacheManagerListener
- extends StateChangeListener
cacheAdded
void cacheAdded(java.lang.String alias,
Cache<?,?> cache)
- Fires just after the @{link Cache} was made
Status.AVAILABLE, but wasn't yet made available
to other threads by the CacheManager. Nonetheless, no other thread can add another Cache
instance by the same alias.
- Parameters:
alias - the alias the Cache is being registered oncache - the actual Cache added
cacheRemoved
void cacheRemoved(java.lang.String alias,
Cache<?,?> cache)
- Fires just after the @{link Cache} was deregistered with the
CacheManager, but wasn't yet made
Status.UNINITIALIZED. So that no other thread can get a handle to this Cache anymore,
but the CacheManagerListener can still interact with it
- Parameters:
alias - the alias the Cache is being deregisteredcache - the actual Cache being removed