Package org.apache.commons.jcs3.jcache
Class JCSCachingManager
java.lang.Object
org.apache.commons.jcs3.jcache.JCSCachingManager
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.CacheManager
-
Constructor Summary
ConstructorDescriptionJCSCachingManager
(javax.cache.spi.CachingProvider provider, URI uri, ClassLoader loader, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<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
getURI()
boolean
isClosed()
void
<T> T
-
Constructor Details
-
JCSCachingManager
public JCSCachingManager(javax.cache.spi.CachingProvider provider, URI uri, ClassLoader loader, Properties properties)
-
-
Method Details
-
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
-
destroyCache
- Specified by:
destroyCache
in interfacejavax.cache.CacheManager
-
enableManagement
- Specified by:
enableManagement
in interfacejavax.cache.CacheManager
-
enableStatistics
- Specified by:
enableStatistics
in interfacejavax.cache.CacheManager
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejavax.cache.CacheManager
- Specified by:
close
in interfaceCloseable
-
unwrap
- Specified by:
unwrap
in interfacejavax.cache.CacheManager
-
isClosed
- Specified by:
isClosed
in interfacejavax.cache.CacheManager
-
getCache
- Specified by:
getCache
in interfacejavax.cache.CacheManager
-
getCacheNames
- Specified by:
getCacheNames
in interfacejavax.cache.CacheManager
-
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
-
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
-
release
-