Package org.infinispan.jcache.remote
Class JCacheManager
- java.lang.Object
-
- org.infinispan.jcache.AbstractJCacheManager
-
- org.infinispan.jcache.remote.JCacheManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,javax.cache.CacheManager
public class JCacheManager extends org.infinispan.jcache.AbstractJCacheManager
-
-
Constructor Summary
Constructors Constructor Description JCacheManager(URI uri, ClassLoader classLoader, javax.cache.spi.CachingProvider provider, Properties userProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <K,V,I extends org.infinispan.commons.api.BasicCache<K,V>>
org.infinispan.jcache.AbstractJCache<K,V>create(I ispnCache)protected <K,V,C extends javax.cache.configuration.Configuration<K,V>>
org.infinispan.jcache.AbstractJCache<K,V>create(String cacheName, C configuration)<K,V>
javax.cache.Cache<K,V>createRegisterJCache(String cacheName)protected Iterable<String>delegateCacheNames()protected booleandelegateIsClosed()protected voiddelegateLogIsClosed()protected <K,V>
voiddelegateRemoveCache(org.infinispan.jcache.AbstractJCache<K,V> jcache)protected voiddelegateStop()<K,V>
javax.cache.Cache<K,V>getCache(String cacheName)<K,V>
javax.cache.Cache<K,V>getCache(String cacheName, Class<K> keyType, Class<V> valueType)ClassLoadergetClassLoader()<T> Tunwrap(Class<T> clazz)
-
-
-
Constructor Detail
-
JCacheManager
public JCacheManager(URI uri, ClassLoader classLoader, javax.cache.spi.CachingProvider provider, Properties userProperties)
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
-
create
protected <K,V,C extends javax.cache.configuration.Configuration<K,V>> org.infinispan.jcache.AbstractJCache<K,V> create(String cacheName, C configuration)
- Specified by:
createin classorg.infinispan.jcache.AbstractJCacheManager
-
getCache
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName)
- Specified by:
getCachein interfacejavax.cache.CacheManager- Overrides:
getCachein classorg.infinispan.jcache.AbstractJCacheManager
-
createRegisterJCache
public <K,V> javax.cache.Cache<K,V> createRegisterJCache(String cacheName)
-
getCache
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName, Class<K> keyType, Class<V> valueType)
- Specified by:
getCachein interfacejavax.cache.CacheManager- Overrides:
getCachein classorg.infinispan.jcache.AbstractJCacheManager
-
create
protected <K,V,I extends org.infinispan.commons.api.BasicCache<K,V>> org.infinispan.jcache.AbstractJCache<K,V> create(I ispnCache)
- Specified by:
createin classorg.infinispan.jcache.AbstractJCacheManager
-
unwrap
public <T> T unwrap(Class<T> clazz)
-
delegateCacheNames
protected Iterable<String> delegateCacheNames()
- Specified by:
delegateCacheNamesin classorg.infinispan.jcache.AbstractJCacheManager
-
delegateStop
protected void delegateStop()
- Specified by:
delegateStopin classorg.infinispan.jcache.AbstractJCacheManager
-
delegateIsClosed
protected boolean delegateIsClosed()
- Specified by:
delegateIsClosedin classorg.infinispan.jcache.AbstractJCacheManager
-
delegateRemoveCache
protected <K,V> void delegateRemoveCache(org.infinispan.jcache.AbstractJCache<K,V> jcache)
- Specified by:
delegateRemoveCachein classorg.infinispan.jcache.AbstractJCacheManager
-
delegateLogIsClosed
protected void delegateLogIsClosed()
- Specified by:
delegateLogIsClosedin classorg.infinispan.jcache.AbstractJCacheManager
-
-