public class CacheManager extends Object implements javax.cache.CacheManager
CacheManager
.Modifier and Type | Field and Description |
---|---|
static boolean |
DFLT_JCACHE_DEFAULT_ISOLATED |
Constructor and Description |
---|
CacheManager(URI uri,
CachingProvider cachingProvider,
ClassLoader clsLdr,
Properties props) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<K,V,C extends javax.cache.configuration.Configuration<K,V>> |
createCache(String cacheName,
C cacheCfg) |
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> valType) |
Iterable<String> |
getCacheNames() |
CachingProvider |
getCachingProvider() |
ClassLoader |
getClassLoader() |
Properties |
getProperties() |
URI |
getURI() |
boolean |
isClosed() |
<T> T |
unwrap(Class<T> clazz) |
public static final boolean DFLT_JCACHE_DEFAULT_ISOLATED
IgniteSystemProperties#IGNITE_JCACHE_DEFAULT_ISOLATED
,
Constant Field Valuespublic CacheManager(URI uri, CachingProvider cachingProvider, ClassLoader clsLdr, Properties props)
uri
- Uri.cachingProvider
- Caching provider.clsLdr
- Class loader.props
- Properties.public 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 cacheCfg) 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> valType)
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 enableManagement(String cacheName, boolean enabled)
enableManagement
in interface javax.cache.CacheManager
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
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024