public class JCacheManager extends Object implements javax.cache.CacheManager
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeCache(JCache<?,?> cache) |
<K,V,C extends javax.cache.configuration.Configuration<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) |
public javax.cache.spi.CachingProvider getCachingProvider()
getCachingProvider
in interface javax.cache.CacheManager
public URI getURI()
getURI
in interface javax.cache.CacheManager
public ClassLoader getClassLoader()
getClassLoader
in interface javax.cache.CacheManager
public Properties getProperties()
getProperties
in interface javax.cache.CacheManager
public <K,V,C extends javax.cache.configuration.Configuration<K,V>> javax.cache.Cache<K,V> createCache(String cacheName, C configuration) throws IllegalArgumentException
createCache
in interface javax.cache.CacheManager
IllegalArgumentException
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName, Class<K> keyType, Class<V> valueType)
getCache
in interface javax.cache.CacheManager
public <K,V> javax.cache.Cache<K,V> getCache(String cacheName)
getCache
in interface javax.cache.CacheManager
public Iterable<String> getCacheNames()
getCacheNames
in interface javax.cache.CacheManager
public void destroyCache(String cacheName)
destroyCache
in interface javax.cache.CacheManager
public void closeCache(JCache<?,?> cache)
public void enableManagement(String cacheName, boolean enabled)
enableManagement
in interface javax.cache.CacheManager
public JCacheStatisticsMXBean getStatBean(JCache<?,?> cache)
public void enableStatistics(String cacheName, boolean enabled)
enableStatistics
in interface javax.cache.CacheManager
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface javax.cache.CacheManager
public boolean isClosed()
isClosed
in interface javax.cache.CacheManager
public <T> T unwrap(Class<T> clazz)
unwrap
in interface javax.cache.CacheManager
Copyright © 2014–2020 Redisson. All rights reserved.