Class AdvancedCacheDecorator<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.embedded.AdvancedCacheDecorator<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 AdvancedCacheDecorator<K,V>
extends org.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator<K,V>
implements org.infinispan.AdvancedCache<K,V>, org.infinispan.cache.impl.InternalCache<K,V>
An
AdvancedCache decorator.
N.B. Implements InternalCache which is required by ComponentRegistry.of(org.infinispan.Cache).- Author:
- Paul Ferraro
-
Nested Class Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAdvancedCacheDecorator(org.infinispan.AdvancedCache<K, V> cache, UnaryOperator<org.infinispan.AdvancedCache<K, V>> decorator) Creates an embedded cache decorator. -
Method Summary
Modifier and TypeMethodDescription<C> CompletionStage<Void> addFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations) addListenerAsync(Object listener) <C> CompletionStage<Void> addListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter) <C> CompletionStage<Void> addStorageFormatFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations) booleanvoidclear()compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) compute(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) compute(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) computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) 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) computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit) computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction, org.infinispan.metadata.Metadata metadata) computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction) computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit) computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) 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) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) 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) computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) booleancontainsKey(Object key) containsKeyAsync(K key) booleancontainsValue(Object value) voidendBatch(boolean successful) entrySet()booleanvoidgetAllAsync(Set<?> keys) getAllCacheEntries(Set<?> keys) org.infinispan.security.AuthorizationManagerorg.infinispan.partitionhandling.AvailabilityModeorg.infinispan.batch.BatchContainerorg.infinispan.configuration.cache.ConfigurationgetCacheEntry(Object key) CompletableFuture<org.infinispan.container.entries.CacheEntry<K, V>> getCacheEntryAsync(Object key) org.infinispan.manager.EmbeddedCacheManagerorg.infinispan.factories.ComponentRegistryorg.infinispan.distribution.DistributionManagerorg.infinispan.encoding.DataConversionorg.infinispan.util.concurrent.locks.LockManagergetOrDefault(Object key, V defaultValue) org.infinispan.remoting.rpc.RpcManagerorg.infinispan.stats.StatsgetStats()org.infinispan.lifecycle.ComponentStatusjakarta.transaction.TransactionManagerorg.infinispan.encoding.DataConversionorg.infinispan.CacheSet<K> keySet()booleanlock(Collection<? extends K> keys) booleanmerge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) merge(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) 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) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) noFlags()put(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) voidvoidvoidputAll(Map<? extends K, ? extends V> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) voidputAllAsync(Map<? extends K, ? extends V> data) putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit) putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) putAllAsync(Map<? extends K, ? extends V> map, org.infinispan.metadata.Metadata metadata) putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) CompletableFuture<org.infinispan.container.entries.CacheEntry<K, V>> putAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata) voidputForExternalRead(K key, V value) voidputForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit) voidputForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) voidputForExternalRead(K key, V value, org.infinispan.metadata.Metadata metadata) putIfAbsent(K key, V value) putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit) putIfAbsent(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) putIfAbsent(K key, V value, org.infinispan.metadata.Metadata metadata) putIfAbsentAsync(K key, V value) putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit) putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) putIfAbsentAsync(K key, V value, org.infinispan.metadata.Metadata metadata) CompletableFuture<org.infinispan.container.entries.CacheEntry<K, V>> putIfAbsentAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata) <T> org.infinispan.commons.api.query.Query<T> CompletableFuture<org.infinispan.container.entries.CacheEntry<K, V>> removeAsyncEntry(Object key) voidremoveGroup(String groupName) removeLifespanExpired(K key, V value, Long lifespan) removeListenerAsync(Object listener) removeMaxIdleExpired(K key, V value) replace(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) booleanbooleanbooleanreplace(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) booleanreplaceAsync(K key, V value) replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit) replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleUnit) replaceAsync(K key, V value, org.infinispan.metadata.Metadata metadata) replaceAsync(K key, V oldValue, V newValue) replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit) replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) replaceAsync(K key, V oldValue, V newValue, org.infinispan.metadata.Metadata metadata) CompletableFuture<org.infinispan.container.entries.CacheEntry<K, V>> replaceAsyncEntry(K key, V value, org.infinispan.metadata.Metadata metadata) voidsetAvailability(org.infinispan.partitionhandling.AvailabilityMode availabilityMode) intsize()booleantransform(Function<org.infinispan.AdvancedCache<K, V>, ? extends org.infinispan.AdvancedCache<K, V>> transformation) org.infinispan.CacheCollection<V> values()withFlags(Collection<org.infinispan.context.Flag> flags) withFlags(org.infinispan.context.Flag flag) withFlags(org.infinispan.context.Flag... flags) <K1,V1> org.infinispan.AdvancedCache <K1, V1> withMediaType(org.infinispan.commons.dataconversion.MediaType keyMediaType, org.infinispan.commons.dataconversion.MediaType valueMediaType) withSubject(Subject subject) Methods inherited from class org.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator
get, remove, removeMethods inherited from class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator
getAsync, getName, getVersion, hashCode, isEmpty, removeAsync, removeAsync, start, stopMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.AdvancedCache
compute, computeAsync, computeIfAbsent, computeIfAbsentAsync, computeIfPresent, computeIfPresentAsync, getAndPutAll, merge, mergeAsyncMethods inherited from interface org.infinispan.commons.api.AsyncCache
getAsync, removeAsync, removeAsyncMethods inherited from interface org.infinispan.commons.api.BasicCache
getName, getVersion, removeMethods inherited from interface org.infinispan.Cache
compute, compute, compute, computeAsync, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresentAsync, merge, merge, merge, mergeAsync, mergeAsync, mergeAsync, shutdown, stopMethods inherited from interface ConcurrentMap
forEach, remove, replaceAllMethods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addListener, addStorageFormatFilteredListenerMethods inherited from interface org.infinispan.commons.api.Lifecycle
startMethods inherited from interface org.infinispan.notifications.Listenable
addListener, removeListener
-
Constructor Details
-
AdvancedCacheDecorator
protected AdvancedCacheDecorator(org.infinispan.AdvancedCache<K, V> cache, UnaryOperator<org.infinispan.AdvancedCache<K, V>> decorator) Creates an embedded cache decorator.- Parameters:
cache- the cache to which to delegate.decorator- the cache decorator
-
-
Method Details
-
getComponentRegistry
-
bypassInvocationContextFactory
-
getCacheConfiguration
-
getCacheManager
-
getAdvancedCache
-
getAvailability
-
setAvailability
-
getAuthorizationManager
-
getBatchContainer
-
getClassLoader
-
getStatus
-
getDataContainer
-
getKeyDataConversion
-
getValueDataConversion
-
getDistributionManager
-
getExpirationManager
-
getLockManager
-
getRpcManager
-
getStats
-
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceorg.infinispan.commons.api.TransactionalCache
-
getXAResource
-
lockAs
-
noFlags
-
transform
-
withFlags
-
withFlags
-
withFlags
-
withMediaType
-
withStorageMediaType
-
withSubject
-
cachePublisher
-
cacheEntrySet
-
entrySet
-
keySet
-
lockedStream
-
values
-
clear
-
clearAsync
-
containsKey
-
containsKeyAsync
-
containsValue
-
size
-
sizeAsync
-
getOrDefault
- Specified by:
getOrDefaultin interfaceConcurrentMap<K,V> - Specified by:
getOrDefaultin interfaceMap<K,V>
-
getAllAsync
-
compute
-
compute
-
compute
-
compute
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) -
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) -
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceorg.infinispan.Cache<K,V> - Specified by:
computeIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
computeIfAbsentin interfaceMap<K,V> - Overrides:
computeIfAbsentin classorg.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator<K,V>
-
computeIfAbsent
-
computeIfAbsent
-
computeIfAbsent
-
computeIfAbsentAsync
-
computeIfAbsentAsync
-
computeIfAbsentAsync
-
computeIfAbsentAsync
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceorg.infinispan.Cache<K,V> - Specified by:
computeIfPresentin interfaceConcurrentMap<K,V> - Specified by:
computeIfPresentin interfaceMap<K,V> - Overrides:
computeIfPresentin classorg.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator<K,V>
-
computeIfPresent
-
computeIfPresent
-
computeIfPresent
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) -
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) -
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
getAll
-
lock
-
lock
-
merge
-
merge
-
merge
-
merge
-
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction) -
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit) -
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
mergeAsync
public CompletableFuture<V> mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, org.infinispan.metadata.Metadata metadata) -
put
-
put
-
put
-
put
-
putAsync
-
putAsync
-
putAsync
-
putAsync
-
putAll
-
putAll
-
putAll
-
putAll
-
putAllAsync
-
putAllAsync
-
putAllAsync
-
putAllAsync
-
putForExternalRead
-
putForExternalRead
-
putForExternalRead
-
putForExternalRead
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V> - Overrides:
putIfAbsentin classorg.wildfly.clustering.cache.infinispan.NonBlockingBasicCacheDecorator<K,V>
-
putIfAbsent
-
putIfAbsent
-
putIfAbsent
-
putIfAbsentAsync
-
putIfAbsentAsync
-
putIfAbsentAsync
-
putIfAbsentAsync
-
replace
-
replace
-
replace
-
replace
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replace
-
replace
-
replace
-
replace
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
evict
-
removeLifespanExpired
-
removeMaxIdleExpired
-
touch
-
touch
-
getCacheEntry
-
getAllCacheEntries
-
getCacheEntryAsync
-
putAsyncEntry
-
putIfAbsentAsyncEntry
-
replaceAsyncEntry
-
removeAsyncEntry
-
startBatch
public boolean startBatch()- Specified by:
startBatchin interfaceorg.infinispan.commons.api.BatchingCache
-
endBatch
public void endBatch(boolean successful) - Specified by:
endBatchin interfaceorg.infinispan.commons.api.BatchingCache
-
getGroup
-
removeGroup
-
addListenerAsync
-
addFilteredListenerAsync
public <C> CompletionStage<Void> addFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations) -
addStorageFormatFilteredListenerAsync
public <C> CompletionStage<Void> addStorageFormatFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K, ? super V, C> converter, Set<Class<? extends Annotation>> filterAnnotations) -
addListenerAsync
- Specified by:
addListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
removeListenerAsync
- Specified by:
removeListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
query
-
continuousQuery
-
equals
-