public class GroupAwareCacheFactory<K extends Serializable,V extends Cacheable<K>> extends Object implements CacheFactory<K,V>, BackingCacheLifecycleListener
CacheFactory implementation that can return a group-aware cache. How the cache functions depends on the
behavior of the BackingCacheEntryStore implementations returned by the injected BackingCacheEntryStoreSource.BackingCacheLifecycleListener.LifecycleState| Constructor and Description |
|---|
GroupAwareCacheFactory(BackingCacheEntryStoreSource<K,V,UUID> storeSource) |
| Modifier and Type | Method and Description |
|---|---|
Cache<K,V> |
createCache(String beanName,
StatefulObjectFactory<V> factory,
PassivationManager<K,V> passivationManager,
StatefulTimeoutInfo timeout)
Creates a cache for a container.
|
void |
lifecycleChange(BackingCacheLifecycleListener.LifecycleState newState)
Notifies the listener that the
BackingCache has entered a new lifecycle state. |
public GroupAwareCacheFactory(BackingCacheEntryStoreSource<K,V,UUID> storeSource)
public Cache<K,V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K,V> passivationManager, StatefulTimeoutInfo timeout)
CacheFactorycreateCache in interface CacheFactory<K extends Serializable,V extends Cacheable<K>>factory - factory for creating objects managed by the cachepassivationManager - manager for invoking pre and post passivation and replication callbacks on the cached objectstimeout - the stateful timeoutpublic void lifecycleChange(BackingCacheLifecycleListener.LifecycleState newState)
BackingCacheLifecycleListenerBackingCache has entered a new lifecycle state.lifecycleChange in interface BackingCacheLifecycleListenernewState - the new state. Cannot be null.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.