public interface CacheManagerListener extends StateChangeListener
CacheManager
Cache
related events, such as
addition and removal.Modifier and Type | Method and Description |
---|---|
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 . |
stateTransition
void cacheAdded(java.lang.String alias, Cache<?,?> cache)
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.void cacheRemoved(java.lang.String alias, Cache<?,?> cache)
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