public class InfinispanCacheManager extends CacheManager
Constructor and Description |
---|
InfinispanCacheManager()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
<K,V> Map<K,V> |
getCache(String name)
This method returns the cache associated with the
supplied name.
|
protected org.infinispan.manager.CacheContainer |
getCacheContainer()
This method returns the cache container for the current thread.
|
String |
getContainer()
This method returns the JNDI name used to obtain
the container resource.
|
boolean |
lock(String cacheName,
Object key)
This method locks the item, associated with the
supplied key, in the named cache.
|
void |
setContainer(String jndiName)
This method sets the JNDI name for the container resource.
|
public void setContainer(String jndiName)
jndiName
- The JNDI name for the container resourcepublic String getContainer()
protected org.infinispan.manager.CacheContainer getCacheContainer()
public <K,V> Map<K,V> getCache(String name)
getCache
in class CacheManager
K
- The key typeV
- The value typename
- The name of the required cachepublic boolean lock(String cacheName, Object key)
lock
in class CacheManager
cacheName
- The name of the cachekey
- The key for the item to be lockedCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.