Package org.infinispan.jcache
Class AbstractJCache<K,V>
java.lang.Object
org.infinispan.jcache.AbstractJCache<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<javax.cache.Cache.Entry<K,,V>> javax.cache.Cache<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.cache.Cache
javax.cache.Cache.Entry<K,V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javax.cache.expiry.ExpiryPolicyprotected final AbstractJCacheNotifier<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJCache(javax.cache.configuration.MutableConfiguration<K, V> configuration, javax.cache.CacheManager cacheManager, AbstractJCacheNotifier<K, V> notifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> listenerCfg) protected abstract voidaddCacheLoaderAdapter(javax.cache.integration.CacheLoader<K, V> cacheLoader) protected abstract voidaddCacheWriterAdapter(javax.cache.integration.CacheWriter<? super K, ? super V> cacheWriter) protected voidprotected abstract voidaddListener(AbstractJCacheListenerAdapter<K, V> listenerAdapter) protected abstract AbstractJCache<K, V> checkNotNull(Object obj, String name) voidclose()protected abstract voidfilterLoadAllKeys(Set<? extends K> keys, boolean replaceExistingValues, boolean cacheEvict) javax.cache.CacheManagerprotected Objectprotected abstract ObjectgetConfiguration(Class<C> clazz) protected abstract MBeanServerinvokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object... arguments) protected voidloadAllFromJCacheLoader(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener listener, org.infinispan.commons.api.BasicCache<K, V> cache, org.infinispan.commons.api.BasicCache<K, V> createCheckCache) loadAllKeys(Collection<? extends K> keysToLoad) booleanprotected <T> TprocessEntryProcessor(MutableJCacheEntry<K, V> mutable, javax.cache.processor.EntryProcessor<K, V, T> entryProcessor, Object[] arguments) protected Vput(org.infinispan.commons.api.BasicCache<K, V> cache, org.infinispan.commons.api.BasicCache<K, V> createCheckCache, K key, V value, boolean isPutIfAbsent) protected booleanprotected voidremoveCacheEntryListenerConfiguration(javax.cache.configuration.CacheEntryListenerConfiguration<K, V> listenerCfg) protected abstract voidremoveListener(AbstractJCacheListenerAdapter<K, V> listenerAdapter) protected Vprotected booleanreplace(org.infinispan.commons.api.BasicCache<K, V> cache, org.infinispan.commons.api.BasicCache<K, V> existsCheckCache, K key, V oldValue, V value, boolean isConditional) protected voidsetCacheLoader(javax.cache.configuration.CompleteConfiguration<K, V> c) protected voidsetCacheWriter(javax.cache.configuration.CompleteConfiguration<K, V> c) protected voidsetListenerCompletion(javax.cache.integration.CompletionListener listener) protected voidsetListenerException(javax.cache.integration.CompletionListener listener, Throwable t) voidsetManagementEnabled(boolean enabled) voidsetStatisticsEnabled(boolean enabled) protected boolean<T> Tprotected voidupdateTTLForAccessed(org.infinispan.commons.api.BasicCache<K, V> cache, K key, V value) protected AbstractJCache<K, V> verifyKeys(Set<? extends K> keys) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.cache.Cache
clear, containsKey, deregisterCacheEntryListener, get, getAll, getAndPut, getAndRemove, getAndReplace, getName, invoke, isClosed, iterator, loadAll, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replaceMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
configuration
-
expiryPolicy
protected final javax.cache.expiry.ExpiryPolicy expiryPolicy -
notifier
-
jcacheLoader
-
jcacheWriter
-
-
Constructor Details
-
AbstractJCache
public AbstractJCache(javax.cache.configuration.MutableConfiguration<K, V> configuration, javax.cache.CacheManager cacheManager, AbstractJCacheNotifier<K, V> notifier)
-
-
Method Details
-
addConfigurationListeners
protected void addConfigurationListeners() -
getConfiguration
-
checkNotNull
-
setCacheLoader
-
setCacheWriter
-
addCacheLoaderAdapter
-
addCacheWriterAdapter
-
setListenerCompletion
protected void setListenerCompletion(javax.cache.integration.CompletionListener listener) -
setListenerException
protected void setListenerException(javax.cache.integration.CompletionListener listener, Throwable t) -
filterLoadAllKeys
-
loadAllKeys
-
loadAllFromJCacheLoader
-
processEntryProcessor
-
checkNotClosed
-
verifyKeys
-
invokeAll
-
evict
-
put
-
updateTTLForAccessed
-
replace
-
replace
-
remove
-
getCacheManager
public javax.cache.CacheManager getCacheManager() -
getMBeanServer
-
getCacheMXBean
-
getCacheStatisticsMXBean
-
setManagementEnabled
public void setManagementEnabled(boolean enabled) -
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) -
addListener
-
removeListener
-
unwrap
-
addCacheEntryListenerConfiguration
-
removeCacheEntryListenerConfiguration
-
statisticsEnabled
protected boolean statisticsEnabled() -
managementEnabled
public boolean managementEnabled() -
close
public void close()
-