public class CachePolicyCacheFactory extends Object implements CacheFactory
| Constructor and Description |
|---|
CachePolicyCacheFactory(CachePolicyFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> Cache<K,V> |
createCache(Class<K> keyClass,
Class<V> valueClass,
String rootFqn)
Create cache.
|
<V> CacheItem<V> |
createCacheItem(Class<V> valueClass,
String rootFqn)
Create cache.
|
protected org.jboss.util.CachePolicy |
createCachePolicy()
Create cache policy.
|
String |
createFqn(Object owner)
Create the owner's fqn.
|
void |
destroy()
Destroy created policies.
|
void |
stop()
Stop created policies.
|
public CachePolicyCacheFactory(CachePolicyFactory factory)
public String createFqn(Object owner)
CacheFactorycreateFqn in interface CacheFactoryowner - the factory owner instanceprotected org.jboss.util.CachePolicy createCachePolicy()
public <K,V> Cache<K,V> createCache(Class<K> keyClass, Class<V> valueClass, String rootFqn)
CacheFactorycreateCache in interface CacheFactoryK - the key classV - the value classkeyClass - the key classvalueClass - the value classrootFqn - the root fqnpublic <V> CacheItem<V> createCacheItem(Class<V> valueClass, String rootFqn)
CacheFactorycreateCacheItem in interface CacheFactoryV - the value classvalueClass - the value classrootFqn - the root fqnpublic void stop()
public void destroy()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.