Package org.redisson.jcache
Class JCacheManager
java.lang.Object
org.redisson.jcache.JCacheManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.CacheManager
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionJCacheManager
(Redisson redisson, ClassLoader classLoader, javax.cache.spi.CachingProvider cacheProvider, Properties properties, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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> <K,
V> javax.cache.Cache<K, V> javax.cache.spi.CachingProvider
getStatBean
(JCache<?, ?> cache) getURI()
boolean
isClosed()
<T> T
-
Constructor Details
-
JCacheManager
public JCacheManager(Redisson redisson, ClassLoader classLoader, javax.cache.spi.CachingProvider cacheProvider, Properties properties, URI uri)
-
-
Method Details
-
getCachingProvider
public javax.cache.spi.CachingProvider getCachingProvider()- Specified by:
getCachingProvider
in interfacejavax.cache.CacheManager
-
getURI
- Specified by:
getURI
in interfacejavax.cache.CacheManager
-
getClassLoader
- Specified by:
getClassLoader
in interfacejavax.cache.CacheManager
-
getProperties
- Specified by:
getProperties
in interfacejavax.cache.CacheManager
-
createCache
public <K,V, javax.cache.Cache<K,C extends javax.cache.configuration.Configuration<K, V>> 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
- Specified by:
getCache
in interfacejavax.cache.CacheManager
-
getCacheNames
- Specified by:
getCacheNames
in interfacejavax.cache.CacheManager
-
destroyCache
- Specified by:
destroyCache
in interfacejavax.cache.CacheManager
-
closeCache
-
enableManagement
- Specified by:
enableManagement
in interfacejavax.cache.CacheManager
-
getStatBean
-
enableStatistics
- 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
- Specified by:
unwrap
in interfacejavax.cache.CacheManager
-