Class InvalidationCache<K,V>
java.lang.Object
org.infinispan.cache.impl.AbstractDelegatingCache<K,V>
org.infinispan.cache.impl.AbstractDelegatingAdvancedCache<K,V>
org.wildfly.clustering.cache.infinispan.embedded.AbstractAdvancedCache<K,V>
org.wildfly.clustering.cache.infinispan.embedded.InvalidationCache<K,V>
- Type Parameters:
K- the cache key typeV- the cache value type
- All Implemented Interfaces:
ConcurrentMap<K,,V> Map<K,,V> org.infinispan.AdvancedCache<K,,V> org.infinispan.Cache<K,,V> org.infinispan.cache.impl.InternalCache<K,,V> org.infinispan.commons.api.AsyncCache<K,,V> org.infinispan.commons.api.BasicCache<K,,V> org.infinispan.commons.api.BatchingCache,org.infinispan.commons.api.Lifecycle,org.infinispan.commons.api.TransactionalCache,org.infinispan.notifications.FilteringListenable<K,,V> org.infinispan.notifications.Listenable
public class InvalidationCache<K,V>
extends AbstractAdvancedCache<K,V>
implements org.infinispan.AdvancedCache<K,V>
Workaround for issues with invalidation caches.
There are several types of cache write operations that require the current value:
- Computational operations, e.g.
AbstractAdvancedCache.compute(Object, BiFunction) - Conditional operations, e.g.
AbstractAdvancedCache.replace(Object, Object) - Operations returning the previous value, e.g.
AbstractAdvancedCache.put(Object, Object)
- Author:
- Paul Ferraro
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.cache.impl.AbstractDelegatingAdvancedCache
cache -
Constructor Summary
ConstructorsConstructorDescriptionInvalidationCache(org.infinispan.AdvancedCache<K, V> cache) InvalidationCache(org.infinispan.Cache<K, V> cache) -
Method Summary
Modifier and TypeMethodDescriptioncompute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, org.infinispan.metadata.Metadata metadata) computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, org.infinispan.metadata.Metadata metadata) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) putIfAbsent(K key, V newValue, org.infinispan.metadata.Metadata metadata) putIfAbsentAsync(K key, V newValue, org.infinispan.metadata.Metadata metadata) removeAsync(Object key) replaceAsync(K key, V newValue, org.infinispan.metadata.Metadata metadata) org.infinispan.AdvancedCacherewrap(org.infinispan.AdvancedCache cache) withFlags(Collection<org.infinispan.context.Flag> flags) Methods inherited from class org.wildfly.clustering.cache.infinispan.embedded.AbstractAdvancedCache
compute, compute, compute, computeAsync, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresent, computeIfPresent, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, merge, merge, merge, mergeAsync, mergeAsync, mergeAsync, put, put, put, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putForExternalRead, putForExternalRead, putForExternalRead, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, withFlags, withFlagsMethods inherited from class org.infinispan.cache.impl.AbstractDelegatingAdvancedCache
cacheEntrySet, cachePublisher, getAdvancedCache, getAll, getAllAsync, getAllCacheEntries, getAndPutAll, getAuthorizationManager, getAvailability, getBatchContainer, getCacheAvailability, getCacheEntry, getCacheEntryAsync, getClassLoader, getComponentRegistry, getDataContainer, getDistributionManager, getExpirationManager, getGroup, getKeyDataConversion, getLockManager, getRpcManager, getStats, getTransactionManager, getValueDataConversion, getXAResource, isRebalancingEnabled, lock, lock, lockAs, lockedStream, noFlags, putAll, putAllAsync, putAsyncEntry, putForExternalRead, putIfAbsentAsyncEntry, removeAsyncEntry, removeGroup, removeLifespanExpired, removeMaxIdleExpired, replace, replaceAsync, replaceAsyncEntry, setAvailability, setCacheAvailability, setRebalancingEnabled, touch, touch, transform, withEncoding, withEncoding, withKeyEncoding, withMediaType, withMediaType, withStorageMediaType, withSubject, withWrapping, withWrappingMethods inherited from class org.infinispan.cache.impl.AbstractDelegatingCache
addFilteredListener, addFilteredListenerAsync, addListener, addListener, addListenerAsync, addListenerAsync, addStorageFormatFilteredListener, addStorageFormatFilteredListenerAsync, clear, clearAsync, containsKey, containsValue, continuousQuery, endBatch, entrySet, evict, forEach, get, getAsync, getCacheConfiguration, getCacheManager, getCacheName, getCacheStatus, getConfigurationAsProperties, getDelegate, getName, getOrDefault, getStatus, getVersion, isEmpty, keySet, query, remove, removeAsync, removeListener, removeListenerAsync, replace, replace, replace, replaceAll, replaceAsync, replaceAsync, replaceAsync, shutdown, size, sizeAsync, start, startBatch, stop, toString, unwrapCache, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.AdvancedCache
cacheEntrySet, cachePublisher, compute, computeAsync, computeIfAbsent, computeIfAbsentAsync, computeIfPresent, computeIfPresentAsync, getAll, getAllCacheEntries, getAndPutAll, getAuthorizationManager, getAvailability, getBatchContainer, getCacheEntry, getCacheEntryAsync, getClassLoader, getDataContainer, getDistributionManager, getExpirationManager, getGroup, getKeyDataConversion, getLockManager, getRpcManager, getStats, getValueDataConversion, getXAResource, lock, lock, lockAs, lockedStream, merge, mergeAsync, noFlags, putAll, putAllAsync, putAsyncEntry, putForExternalRead, putIfAbsentAsyncEntry, removeAsyncEntry, removeGroup, removeLifespanExpired, removeMaxIdleExpired, replace, replaceAsync, replaceAsyncEntry, setAvailability, touch, touch, transform, withEncoding, withEncoding, withFlags, withFlags, withKeyEncoding, withMediaType, withMediaType, withStorageMediaType, withSubject, withWrapping, withWrappingMethods inherited from interface org.infinispan.commons.api.AsyncCache
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, getAllAsync, getAsync, mergeAsync, mergeAsync, mergeAsync, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, sizeAsyncMethods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, continuousQuery, getName, getVersion, merge, merge, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, query, replace, replace, replace, replaceMethods inherited from interface org.infinispan.commons.api.BatchingCache
endBatch, startBatchMethods inherited from interface org.infinispan.Cache
clear, compute, compute, compute, compute, computeAsync, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresent, computeIfPresentAsync, entrySet, evict, getAdvancedCache, getCacheConfiguration, getCacheManager, getStatus, keySet, merge, merge, merge, merge, mergeAsync, mergeAsync, mergeAsync, putForExternalRead, putForExternalRead, putForExternalRead, shutdown, size, stop, valuesMethods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addFilteredListenerAsync, addListener, addListenerAsync, addStorageFormatFilteredListener, addStorageFormatFilteredListenerAsyncMethods inherited from interface org.infinispan.cache.impl.InternalCache
bypassInvocationContextFactoryMethods inherited from interface org.infinispan.commons.api.Lifecycle
startMethods inherited from interface org.infinispan.notifications.Listenable
addListener, addListenerAsync, removeListener, removeListenerAsyncMethods inherited from interface java.util.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, putAllMethods inherited from interface org.infinispan.commons.api.TransactionalCache
getTransactionManager
-
Constructor Details
-
InvalidationCache
-
InvalidationCache
-
-
Method Details
-
withFlags
-
compute
-
computeIfAbsent
-
computeIfPresent
-
merge
-
put
-
putIfAbsent
-
remove
-
replace
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
computeIfAbsentAsync
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
putAsync
-
putIfAbsentAsync
public CompletableFuture<V> putIfAbsentAsync(K key, V newValue, org.infinispan.metadata.Metadata metadata) -
removeAsync
-
replaceAsync
public CompletableFuture<V> replaceAsync(K key, V newValue, org.infinispan.metadata.Metadata metadata) -
rewrap
public org.infinispan.AdvancedCache rewrap(org.infinispan.AdvancedCache cache)
-