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
ConstructorDescriptionJCSCache
(ClassLoader classLoader, JCSCachingManager mgr, String cacheName, JCSConfiguration<K, V> configuration, Properties properties, ExpiryAwareCache<K, V> cache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
boolean
containsKey
(K key) void
deregisterCacheEntryListener
(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) void
void
void
void
getAndRemove
(K key) getAndReplace
(K key, V value) javax.cache.CacheManager
getConfiguration
(Class<C2> clazz) getName()
<T> T
invokeAll
(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object... arguments) boolean
isClosed()
iterator()
void
loadAll
(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener) void
void
boolean
putIfAbsent
(K key, V value) void
registerCacheEntryListener
(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> cacheEntryListenerConfiguration) boolean
boolean
void
void
boolean
boolean
<T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-