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)
CacheFactory
createFqn
in interface CacheFactory
owner
- the factory owner instanceprotected org.jboss.util.CachePolicy createCachePolicy()
public <K,V> Cache<K,V> createCache(Class<K> keyClass, Class<V> valueClass, String rootFqn)
CacheFactory
createCache
in interface CacheFactory
K
- the key classV
- the value classkeyClass
- the key classvalueClass
- the value classrootFqn
- the root fqnpublic <V> CacheItem<V> createCacheItem(Class<V> valueClass, String rootFqn)
CacheFactory
createCacheItem
in interface CacheFactory
V
- 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.