org.ehcache.core.events
Interface CacheManagerListener

All Superinterfaces:
StateChangeListener
All Known Implementing Classes:
DefaultCollectorService, DefaultManagementRegistryService

public interface CacheManagerListener
extends StateChangeListener


Method Summary
 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.
 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.
 
Methods inherited from interface org.ehcache.core.events.StateChangeListener
stateTransition
 

Method Detail

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 on
cache - 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 deregistered
cache - the actual Cache being removed