Package org.apache.commons.jcs3.jcache
Class JCSCache<K,V>
java.lang.Object
org.apache.commons.jcs3.jcache.JCSCache<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<javax.cache.Cache.Entry<K,,V>> javax.cache.Cache<K,V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJCSCache(ClassLoader classLoader, JCSCachingManager mgr, String cacheName, JCSConfiguration<K, V> configuration, Properties properties, ExpiryAwareCache<K, V> cache) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()booleancontainsKey(K key) voidderegisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) voidvoidvoidvoidgetAndRemove(K key) getAndReplace(K key, V value) javax.cache.CacheManagergetConfiguration(Class<C2> clazz) getName()<T> TinvokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object... arguments) booleanisClosed()iterator()voidloadAll(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener) voidvoidbooleanputIfAbsent(K key, V value) voidregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) booleanbooleanvoidvoidbooleanboolean<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
JCSCache
public JCSCache(ClassLoader classLoader, JCSCachingManager mgr, String cacheName, JCSConfiguration<K, V> configuration, Properties properties, ExpiryAwareCache<K, V> cache)
-
-
Method Details
-
get
-
getAll
-
containsKey
-
put
-
getAndPut
-
putAll
-
putIfAbsent
-
remove
-
remove
-
getAndRemove
-
replace
-
replace
-
getAndReplace
-
removeAll
-
removeAll
-
clear
-
getConfiguration
public <C2 extends javax.cache.configuration.Configuration<K,V>> C2 getConfiguration(Class<C2> clazz) -
loadAll
-
invoke
-
invokeAll
-
registerCacheEntryListener
public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) -
deregisterCacheEntryListener
public void deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) -
iterator
-
getName
-
getCacheManager
-
close
-
isClosed
-
unwrap
-
getStatistics
-
enableManagement
-
disableManagement
-
enableStatistics
-
disableStatistics
-