public interface CacheFactory<K extends Serializable,T extends Identifiable<K>>
Modifier and Type | Method and Description |
---|---|
Cache<K,T> |
createCache(String beanName,
StatefulObjectFactory<T> factory,
PassivationManager<K,T> passivationManager,
StatefulTimeoutInfo timeout)
Creates a cache for a container.
|
Cache<K,T> createCache(String beanName, StatefulObjectFactory<T> factory, PassivationManager<K,T> passivationManager, StatefulTimeoutInfo timeout)
containerName
- fully qualified name of the container. Must be unique across all possibly co-existent containers in
the system. Should be as concise as possible, as this name may be replicated around a cluster in numerous
messages. Should not contain characters that are illegal to include in an element of a filesystem path. An example
containerName for an EJBContainer might be "ear=foo.ear,jar=foo.jar,name=Bar".factory
- factory for creating objects managed by the cachepassivationManager
- manager for invoking pre and post passivation and replication callbacks on the cached objectsstatefulTimeout
- the stateful timeoutconfig
- configuration details for the cacheCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.