public class JCSCachingManager extends Object implements javax.cache.CacheManager
Constructor and Description |
---|
JCSCachingManager(javax.cache.spi.CachingProvider provider,
URI uri,
ClassLoader loader,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<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() |
URI |
getURI() |
boolean |
isClosed() |
void |
release(String name) |
<T> T |
unwrap(Class<T> clazz) |
public JCSCachingManager(javax.cache.spi.CachingProvider provider, URI uri, ClassLoader loader, Properties properties)
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 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 <T> T unwrap(Class<T> clazz)
unwrap
in interface javax.cache.CacheManager
public boolean isClosed()
isClosed
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 <K,V> javax.cache.Cache<K,V> getCache(String cacheName, Class<K> keyType, Class<V> valueType)
getCache
in interface javax.cache.CacheManager
public javax.cache.spi.CachingProvider getCachingProvider()
getCachingProvider
in interface javax.cache.CacheManager
public ClassLoader getClassLoader()
getClassLoader
in interface javax.cache.CacheManager
public Properties getProperties()
getProperties
in interface javax.cache.CacheManager
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.