public class JCache<K,V> extends AbstractJCache<K,V>
Cache
interface.configuration, expiryPolicy, jcacheLoader, jcacheWriter, notifier
Constructor and Description |
---|
JCache(AdvancedCache<K,V> cache,
javax.cache.CacheManager cacheManager,
ConfigurationAdapter<K,V> c) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCacheLoaderAdapter(javax.cache.integration.CacheLoader<K,V> cacheLoader) |
protected void |
addCacheWriterAdapter(javax.cache.integration.CacheWriter<? super K,? super V> cacheWriter) |
protected void |
addListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter) |
protected AbstractJCache<K,V> |
checkNotClosed() |
void |
clear() |
void |
close() |
boolean |
containsKey(K key) |
void |
deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg) |
protected void |
evict(K key) |
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) |
protected javax.cache.management.CacheStatisticsMXBean |
getCacheStatisticsMXBean() |
protected MBeanServer |
getMBeanServer() |
String |
getName() |
<T> T |
invoke(K key,
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 listener) |
void |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> inputMap) |
boolean |
putIfAbsent(K key,
V value) |
void |
registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg) |
boolean |
remove(K key) |
boolean |
remove(K key,
V oldValue) |
void |
removeAll() |
void |
removeAll(Set<? extends K> keys) |
protected void |
removeListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter) |
boolean |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
setStatisticsEnabled(boolean enabled) |
<T> T |
unwrap(Class<T> clazz) |
addCacheEntryListenerConfiguration, addConfigurationListeners, checkNotNull, filterLoadAllKeys, getCacheManager, getCacheMXBean, getConfiguration, invokeAll, loadAllFromJCacheLoader, loadAllKeys, processEntryProcessor, put, remove, removeCacheEntryListenerConfiguration, replace, replace, setCacheLoader, setCacheWriter, setListenerCompletion, setListenerException, setManagementEnabled, statisticsEnabled, updateTTLForAccessed, verifyKeys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JCache(AdvancedCache<K,V> cache, javax.cache.CacheManager cacheManager, ConfigurationAdapter<K,V> c)
protected void addCacheLoaderAdapter(javax.cache.integration.CacheLoader<K,V> cacheLoader)
addCacheLoaderAdapter
in class AbstractJCache<K,V>
protected void addCacheWriterAdapter(javax.cache.integration.CacheWriter<? super K,? super V> cacheWriter)
addCacheWriterAdapter
in class AbstractJCache<K,V>
public void clear()
public boolean containsKey(K key)
public void close()
public boolean isClosed()
public String getName()
public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments)
public void loadAll(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener listener)
public boolean remove(K key)
public void removeAll()
public <T> T unwrap(Class<T> clazz)
public void registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg)
public void deregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg)
public void setStatisticsEnabled(boolean enabled)
setStatisticsEnabled
in class AbstractJCache<K,V>
protected javax.cache.management.CacheStatisticsMXBean getCacheStatisticsMXBean()
getCacheStatisticsMXBean
in class AbstractJCache<K,V>
protected MBeanServer getMBeanServer()
getMBeanServer
in class AbstractJCache<K,V>
protected AbstractJCache<K,V> checkNotClosed()
checkNotClosed
in class AbstractJCache<K,V>
protected void addListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter)
addListener
in class AbstractJCache<K,V>
protected void removeListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter)
removeListener
in class AbstractJCache<K,V>
protected void evict(K key)
evict
in class AbstractJCache<K,V>
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.