Modifier and Type | Field and Description |
---|---|
protected javax.cache.configuration.MutableConfiguration<K,V> |
configuration |
protected javax.cache.expiry.ExpiryPolicy |
expiryPolicy |
protected javax.cache.integration.CacheLoader<K,V> |
jcacheLoader |
protected javax.cache.integration.CacheWriter<? super K,? super V> |
jcacheWriter |
protected AbstractJCacheNotifier<K,V> |
notifier |
Constructor and Description |
---|
AbstractJCache(javax.cache.configuration.MutableConfiguration<K,V> configuration,
javax.cache.CacheManager cacheManager,
AbstractJCacheNotifier<K,V> notifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg) |
protected abstract void |
addCacheLoaderAdapter(javax.cache.integration.CacheLoader<K,V> cacheLoader) |
protected abstract void |
addCacheWriterAdapter(javax.cache.integration.CacheWriter<? super K,? super V> cacheWriter) |
protected void |
addConfigurationListeners() |
protected abstract void |
addListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter) |
protected abstract AbstractJCache<K,V> |
checkNotClosed() |
AbstractJCache<K,V> |
checkNotNull(Object obj,
String name) |
protected abstract void |
evict(K key) |
protected List<K> |
filterLoadAllKeys(Set<? extends K> keys,
boolean replaceExistingValues,
boolean cacheEvict) |
javax.cache.CacheManager |
getCacheManager() |
protected Object |
getCacheMXBean() |
protected abstract Object |
getCacheStatisticsMXBean() |
<C extends javax.cache.configuration.Configuration<K,V>> |
getConfiguration(Class<C> clazz) |
protected abstract MBeanServer |
getMBeanServer() |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Set<? extends K> keys,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
protected void |
loadAllFromJCacheLoader(Set<? extends K> keys,
boolean replaceExistingValues,
javax.cache.integration.CompletionListener listener,
BasicCache<K,V> cache,
BasicCache<K,V> createCheckCache) |
protected Map<K,V> |
loadAllKeys(List<K> keysToLoad) |
protected <T> T |
processEntryProcessor(MutableJCacheEntry<K,V> mutable,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object[] arguments) |
protected V |
put(BasicCache<K,V> cache,
BasicCache<K,V> createCheckCache,
K key,
V value,
boolean isPutIfAbsent) |
protected boolean |
remove(BasicCache<K,V> cache,
K key,
V oldValue) |
protected void |
removeCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg) |
protected abstract void |
removeListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter) |
protected boolean |
replace(BasicCache<K,V> cache,
BasicCache<K,V> existsCheckCache,
K key,
V oldValue,
V value,
boolean isConditional) |
protected V |
replace(BasicCache<K,V> cache,
K key,
V value) |
protected void |
setCacheLoader(javax.cache.configuration.CompleteConfiguration<K,V> c) |
protected void |
setCacheWriter(javax.cache.configuration.CompleteConfiguration<K,V> c) |
protected void |
setListenerCompletion(javax.cache.integration.CompletionListener listener) |
protected void |
setListenerException(javax.cache.integration.CompletionListener listener,
Throwable t) |
void |
setManagementEnabled(boolean enabled) |
void |
setStatisticsEnabled(boolean enabled) |
protected boolean |
statisticsEnabled() |
<T> T |
unwrap(Class<T> clazz) |
protected void |
updateTTLForAccessed(BasicCache<K,V> cache,
K key,
V value) |
protected AbstractJCache<K,V> |
verifyKeys(Set<? extends K> keys) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, close, containsKey, deregisterCacheEntryListener, get, getAll, getAndPut, getAndRemove, getAndReplace, getName, invoke, isClosed, iterator, loadAll, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace
forEach, spliterator
protected final javax.cache.expiry.ExpiryPolicy expiryPolicy
protected final AbstractJCacheNotifier<K,V> notifier
public AbstractJCache(javax.cache.configuration.MutableConfiguration<K,V> configuration, javax.cache.CacheManager cacheManager, AbstractJCacheNotifier<K,V> notifier)
protected void addConfigurationListeners()
public <C extends javax.cache.configuration.Configuration<K,V>> C getConfiguration(Class<C> clazz)
public AbstractJCache<K,V> checkNotNull(Object obj, String name)
protected void setCacheLoader(javax.cache.configuration.CompleteConfiguration<K,V> c)
protected void setCacheWriter(javax.cache.configuration.CompleteConfiguration<K,V> c)
protected abstract void addCacheLoaderAdapter(javax.cache.integration.CacheLoader<K,V> cacheLoader)
protected abstract void addCacheWriterAdapter(javax.cache.integration.CacheWriter<? super K,? super V> cacheWriter)
protected void setListenerCompletion(javax.cache.integration.CompletionListener listener)
protected void setListenerException(javax.cache.integration.CompletionListener listener, Throwable t)
protected List<K> filterLoadAllKeys(Set<? extends K> keys, boolean replaceExistingValues, boolean cacheEvict)
protected void loadAllFromJCacheLoader(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener listener, BasicCache<K,V> cache, BasicCache<K,V> createCheckCache)
protected <T> T processEntryProcessor(MutableJCacheEntry<K,V> mutable, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object[] arguments)
protected abstract AbstractJCache<K,V> checkNotClosed()
protected AbstractJCache<K,V> verifyKeys(Set<? extends K> keys)
public <T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments)
protected abstract void evict(K key)
protected V put(BasicCache<K,V> cache, BasicCache<K,V> createCheckCache, K key, V value, boolean isPutIfAbsent)
protected void updateTTLForAccessed(BasicCache<K,V> cache, K key, V value)
protected boolean replace(BasicCache<K,V> cache, BasicCache<K,V> existsCheckCache, K key, V oldValue, V value, boolean isConditional)
protected boolean remove(BasicCache<K,V> cache, K key, V oldValue)
public javax.cache.CacheManager getCacheManager()
protected abstract MBeanServer getMBeanServer()
protected Object getCacheMXBean()
protected abstract Object getCacheStatisticsMXBean()
public void setManagementEnabled(boolean enabled)
public void setStatisticsEnabled(boolean enabled)
protected abstract void addListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter)
protected abstract void removeListener(AbstractJCacheListenerAdapter<K,V> listenerAdapter)
protected void addCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg)
protected void removeCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> listenerCfg)
protected boolean statisticsEnabled()
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.