org.infinispan.jcache
Class JCacheManager
java.lang.Object
org.infinispan.jcache.JCacheManager
- All Implemented Interfaces:
- javax.cache.CacheManager
public class JCacheManager
- extends Object
- implements javax.cache.CacheManager
Infinispan's implementation of CacheManager
.
- Since:
- 5.3
- Author:
- Vladimir Blagojevic, Galder ZamarreƱo
Method Summary |
void |
close()
|
<K,V> javax.cache.Cache<K,V> |
|
configureCache(String cacheName,
AdvancedCache<K,V> ispnCache)
|
<K,V> javax.cache.Cache<K,V> |
|
configureCache(String cacheName,
javax.cache.Configuration<K,V> c)
|
void |
enableManagement(String cacheName,
boolean enabled)
|
void |
enableStatistics(String cacheName,
boolean enabled)
|
protected void |
finalize()
Avoid weak references to this cache manager
being garbage collected without being shutdown. |
<K,V> javax.cache.Cache<K,V> |
|
getCache(String cacheName)
|
Iterable<javax.cache.Cache<?,?>> |
getCaches()
|
javax.cache.spi.CachingProvider |
getCachingProvider()
|
Properties |
getProperties()
|
javax.cache.Status |
getStatus()
|
URI |
getURI()
|
UserTransaction |
getUserTransaction()
|
boolean |
isSupported(javax.cache.OptionalFeature optionalFeature)
|
boolean |
removeCache(String cacheName)
|
|
unwrap(Class<T> cls)
|
JCacheManager
public JCacheManager(URI uri,
ClassLoader classLoader,
javax.cache.spi.CachingProvider provider)
- Create a new InfinispanCacheManager given a cache name and a
ClassLoader
. Cache name
might refer to a file on classpath containing Infinispan configuration file.
- Parameters:
uri
- identifies the cache managerclassLoader
- used to load classes stored in this cache manager
JCacheManager
public JCacheManager(URI uri,
EmbeddedCacheManager cacheManager,
javax.cache.spi.CachingProvider provider)
getCachingProvider
public javax.cache.spi.CachingProvider getCachingProvider()
- Specified by:
getCachingProvider
in interface javax.cache.CacheManager
getURI
public URI getURI()
- Specified by:
getURI
in interface javax.cache.CacheManager
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface javax.cache.CacheManager
getStatus
public javax.cache.Status getStatus()
- Specified by:
getStatus
in interface javax.cache.CacheManager
configureCache
public <K,V> javax.cache.Cache<K,V> configureCache(String cacheName,
javax.cache.Configuration<K,V> c)
- Specified by:
configureCache
in interface javax.cache.CacheManager
configureCache
public <K,V> javax.cache.Cache<K,V> configureCache(String cacheName,
AdvancedCache<K,V> ispnCache)
getCache
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName)
- Specified by:
getCache
in interface javax.cache.CacheManager
getCaches
public Iterable<javax.cache.Cache<?,?>> getCaches()
- Specified by:
getCaches
in interface javax.cache.CacheManager
removeCache
public boolean removeCache(String cacheName)
- Specified by:
removeCache
in interface javax.cache.CacheManager
getUserTransaction
public UserTransaction getUserTransaction()
- Specified by:
getUserTransaction
in interface javax.cache.CacheManager
isSupported
public boolean isSupported(javax.cache.OptionalFeature optionalFeature)
- Specified by:
isSupported
in interface javax.cache.CacheManager
enableManagement
public void enableManagement(String cacheName,
boolean enabled)
- Specified by:
enableManagement
in interface javax.cache.CacheManager
enableStatistics
public void enableStatistics(String cacheName,
boolean enabled)
- Specified by:
enableStatistics
in interface javax.cache.CacheManager
close
public void close()
- Specified by:
close
in interface javax.cache.CacheManager
unwrap
public <T> T unwrap(Class<T> cls)
- Specified by:
unwrap
in interface javax.cache.CacheManager
finalize
protected void finalize()
throws Throwable
- Avoid weak references to this cache manager
being garbage collected without being shutdown.
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.