Package org.redisson.jcache
Class JCacheManager
- java.lang.Object
-
- org.redisson.jcache.JCacheManager
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.CacheManager
public class JCacheManager extends Object implements javax.cache.CacheManager
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description JCacheManager(Redisson redisson, ClassLoader classLoader, javax.cache.spi.CachingProvider cacheProvider, Properties properties, URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
closeCache(JCache<?,?> cache)
<K,V,C extends javax.cache.configuration.Configuration<K,V>>
javax.cache.Cache<K,V>createCache(String cacheName, C configuration)
void
destroyCache(String cacheName)
void
enableManagement(String cacheName, boolean enabled)
void
enableStatistics(String cacheName, boolean enabled)
<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)
Iterable<String>
getCacheNames()
javax.cache.spi.CachingProvider
getCachingProvider()
ClassLoader
getClassLoader()
Properties
getProperties()
JCacheStatisticsMXBean
getStatBean(JCache<?,?> cache)
URI
getURI()
boolean
isClosed()
<T> T
unwrap(Class<T> clazz)
-
-
-
Constructor Detail
-
JCacheManager
public JCacheManager(Redisson redisson, ClassLoader classLoader, javax.cache.spi.CachingProvider cacheProvider, Properties properties, URI uri)
-
-
Method Detail
-
getCachingProvider
public javax.cache.spi.CachingProvider getCachingProvider()
- Specified by:
getCachingProvider
in interfacejavax.cache.CacheManager
-
getURI
public URI getURI()
- Specified by:
getURI
in interfacejavax.cache.CacheManager
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacejavax.cache.CacheManager
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfacejavax.cache.CacheManager
-
createCache
public <K,V,C extends javax.cache.configuration.Configuration<K,V>> javax.cache.Cache<K,V> createCache(String cacheName, C configuration) throws IllegalArgumentException
- Specified by:
createCache
in interfacejavax.cache.CacheManager
- Throws:
IllegalArgumentException
-
getCache
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName, Class<K> keyType, Class<V> valueType)
- Specified by:
getCache
in interfacejavax.cache.CacheManager
-
getCache
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName)
- Specified by:
getCache
in interfacejavax.cache.CacheManager
-
getCacheNames
public Iterable<String> getCacheNames()
- Specified by:
getCacheNames
in interfacejavax.cache.CacheManager
-
destroyCache
public void destroyCache(String cacheName)
- Specified by:
destroyCache
in interfacejavax.cache.CacheManager
-
closeCache
public void closeCache(JCache<?,?> cache)
-
enableManagement
public void enableManagement(String cacheName, boolean enabled)
- Specified by:
enableManagement
in interfacejavax.cache.CacheManager
-
getStatBean
public JCacheStatisticsMXBean getStatBean(JCache<?,?> cache)
-
enableStatistics
public void enableStatistics(String cacheName, boolean enabled)
- Specified by:
enableStatistics
in interfacejavax.cache.CacheManager
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejavax.cache.CacheManager
- Specified by:
close
in interfaceCloseable
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfacejavax.cache.CacheManager
-
unwrap
public <T> T unwrap(Class<T> clazz)
- Specified by:
unwrap
in interfacejavax.cache.CacheManager
-
-