public class JCSCache<K,V> extends Object implements javax.cache.Cache<K,V>
Constructor and Description |
---|
JCSCache(ClassLoader classLoader,
JCSCachingManager mgr,
String cacheName,
JCSConfiguration<K,V> configuration,
Properties properties,
ExpiryAwareCache<K,V> cache) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(K key) |
void |
deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
void |
disableManagement() |
void |
disableStatistics() |
void |
enableManagement() |
void |
enableStatistics() |
V |
get(K key) |
Map<K,V> |
getAll(Set<? extends K> keys) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getAndReplace(K key,
V value) |
javax.cache.CacheManager |
getCacheManager() |
<C2 extends javax.cache.configuration.Configuration<K,V>> |
getConfiguration(Class<C2> clazz) |
String |
getName() |
Statistics |
getStatistics() |
<T> T |
invoke(K key,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Set<? extends K> keys,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
boolean |
isClosed() |
Iterator<javax.cache.Cache.Entry<K,V>> |
iterator() |
void |
loadAll(Set<? extends K> keys,
boolean replaceExistingValues,
javax.cache.integration.CompletionListener completionListener) |
void |
put(K key,
V rawValue) |
void |
putAll(Map<? extends K,? extends V> map) |
boolean |
putIfAbsent(K key,
V value) |
void |
registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration) |
boolean |
remove(K key) |
boolean |
remove(K key,
V oldValue) |
void |
removeAll() |
void |
removeAll(Set<? extends K> keys) |
boolean |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
<T> T |
unwrap(Class<T> clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JCSCache(ClassLoader classLoader, JCSCachingManager mgr, String cacheName, JCSConfiguration<K,V> configuration, Properties properties, ExpiryAwareCache<K,V> cache)
public boolean containsKey(K key)
public boolean putIfAbsent(K key, V value)
public V getAndRemove(K key)
public V getAndReplace(K key, V value)
public <C2 extends javax.cache.configuration.Configuration<K,V>> C2 getConfiguration(Class<C2> clazz)
public void loadAll(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener)
public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments) throws javax.cache.processor.EntryProcessorException
public <T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments)
public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
public void deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration)
public javax.cache.CacheManager getCacheManager()
public void close()
public Statistics getStatistics()
public void enableManagement()
public void disableManagement()
public void enableStatistics()
public void disableStatistics()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.