Class RemoteCacheDecorator<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.remote.RemoteCacheDecorator<K,V>
- Type Parameters:
K- the cache key typeV- the cache value type
- All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K, V>, org.infinispan.client.hotrod.impl.InternalRemoteCache<K, V>, org.infinispan.client.hotrod.RemoteCache<K, V>, org.infinispan.commons.api.AsyncCache<K, V>, org.infinispan.commons.api.BasicCache<K, V>, org.infinispan.commons.api.Lifecycle, org.infinispan.commons.api.TransactionalCache
- Direct Known Subclasses:
ReadForUpdateRemoteCache
public class RemoteCacheDecorator<K,V>
extends org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator<K,V>
implements org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
An abstract delegating remote cache implementation.
N.B. Implements
InternalRemoteCache to support casting, as required by Search.getQueryFactory(RemoteCache).- Author:
- Paul Ferraro
-
Nested Class Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRemoteCacheDecorator(org.infinispan.client.hotrod.impl.InternalRemoteCache<K, V> cache, UnaryOperator<org.infinispan.client.hotrod.impl.InternalRemoteCache<K, V>> decorator) Creates a remote cache decorator. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientListener(Object listener) voidaddClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams) io.netty.channel.ChanneladdNearCacheListener(Object listener, int bloomBits) clear(org.infinispan.api.common.CacheOptions options) org.infinispan.client.hotrod.impl.ClientStatisticsCompletionStage<org.infinispan.api.configuration.CacheConfiguration> Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries(org.infinispan.api.common.CacheOptions options) entryIterator(org.infinispan.commons.util.IntSet segments) entrySet()entrySet(org.infinispan.commons.util.IntSet segments) booleanestimateSize(org.infinispan.api.common.CacheOptions options) <T> TintflagInt()Set<org.infinispan.client.hotrod.Flag> flags()Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options) org.infinispan.client.hotrod.CacheTopologyInfoorg.infinispan.client.hotrod.DataFormatorg.infinispan.client.hotrod.impl.transport.netty.OperationDispatcherCompletionStage<org.infinispan.api.common.CacheEntry<K, V>> org.infinispan.client.hotrod.event.impl.ClientListenerNotifierbyte[]org.infinispan.client.hotrod.impl.operations.CacheOperationsFactoryCompletionStage<org.infinispan.api.common.CacheEntry<K, V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) org.infinispan.client.hotrod.RemoteCacheContainerorg.infinispan.client.hotrod.RemoteCacheManagerDeprecated.jakarta.transaction.TransactionManagerorg.infinispan.client.hotrod.MetadataValue<V> getWithMetadata(K key) CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key) CompletionStage<org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation.GetWithMetadataResult<V>> getWithMetadataAsync(K key, io.netty.channel.Channel channel) booleanvoidinit(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher) voidinit(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher, ObjectName jmxParent) booleanprotected <T> Tjoin(CompletableFuture<T> future) org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) keys(org.infinispan.api.common.CacheOptions options) org.infinispan.commons.util.CloseableIteratorSet<K> keySet()org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments) byte[]keyToBytes(Object o) Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K, V>> listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types) noFlags()CompletionStage<org.infinispan.client.hotrod.impl.operations.PingResponse> ping()<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K, T>> process(Set<K> keys, org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> task, org.infinispan.api.common.CacheOptions options) <T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K, T>> processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> processor, org.infinispan.api.common.process.CacheProcessorOptions options) publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize) publishEntriesByQuery(org.infinispan.commons.api.query.Query<?> filterQuery, Set<Integer> segments, int batchSize) publishEntriesWithMetadata(Set<Integer> segments, int batchSize) CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries, org.infinispan.api.common.CacheWriteOptions options) putAllAsync(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 maxIdle, TimeUnit maxIdleUnit) CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) putIfAbsentAsync(K key, V value) putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit) putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) voidremoveClientListener(Object listener) booleanremoveWithVersion(K key, long version) removeWithVersionAsync(K key, long version) replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) replaceAsync(K key, V value) replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit) replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) 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 maxIdle, TimeUnit maxIdleUnit) booleanreplaceWithVersion(K key, V newValue, long version) booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds) booleanreplaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds) booleanreplaceWithVersion(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit) replaceWithVersionAsync(K key, V newValue, long version) replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds) replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds, int maxIdleSeconds) replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit) voidvoidresolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value) retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize) retrieveEntriesByQuery(org.infinispan.commons.api.query.Query<?> filterQuery, Set<Integer> segments, int batchSize) org.infinispan.commons.util.CloseableIterator<Map.Entry<Object, org.infinispan.client.hotrod.MetadataValue<Object>>> retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize) org.infinispan.client.hotrod.ServerStatisticsCompletionStage<org.infinispan.client.hotrod.ServerStatistics> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) org.infinispan.client.hotrod.StreamingRemoteCache<K> org.infinispan.commons.util.CloseableIteratorCollection<V> values()org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments) <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache <T, U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat) withFlags(org.infinispan.client.hotrod.Flag... flags) Methods inherited from class org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator
clear, compute, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, computeIfPresent, containsKey, get, merge, merge, merge, put, put, put, putAll, putAll, putAll, putIfAbsent, putIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace, replace, replace, sizeMethods inherited from class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, containsValue, continuousQuery, getAllAsync, getAsync, getName, getVersion, hashCode, isEmpty, mergeAsync, mergeAsync, mergeAsync, query, removeAsync, removeAsync, sizeAsync, start, stopMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.api.AsyncCache
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, getAllAsync, getAsync, mergeAsync, mergeAsync, mergeAsync, removeAsync, removeAsync, sizeAsyncMethods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, continuousQuery, getName, getVersion, merge, merge, put, put, put, putIfAbsent, putIfAbsent, query, replace, replaceMethods inherited from interface ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replaceAllMethods inherited from interface org.infinispan.client.hotrod.impl.InternalRemoteCache
removeEntry, removeEntryMethods inherited from interface org.infinispan.commons.api.Lifecycle
start, stopMethods inherited from interface Map
clear, containsKey, containsValue, get, hashCode, isEmpty, sizeMethods inherited from interface org.infinispan.client.hotrod.RemoteCache
execute, execute, putAll, putAll, putAll, remove, remove, replace, replace, replace, retrieveEntries, retrieveEntries
-
Constructor Details
-
RemoteCacheDecorator
protected RemoteCacheDecorator(org.infinispan.client.hotrod.impl.InternalRemoteCache<K, V> cache, UnaryOperator<org.infinispan.client.hotrod.impl.InternalRemoteCache<K, V>> decorator) Creates a remote cache decorator.- Parameters:
cache- the decorated remote cachedecorator- the cache decorator.
-
-
Method Details
-
join
-
putAsync
-
putAsync
-
putAsync
-
putAllAsync
-
putAllAsync
-
putAllAsync
-
putIfAbsentAsync
-
putIfAbsentAsync
-
putIfAbsentAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
replaceAsync
-
getCacheTopologyInfo
-
getProtocolVersion
-
getRemoteCacheContainer
-
getRemoteCacheManager
Deprecated. -
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceorg.infinispan.commons.api.TransactionalCache
-
clientStatistics
-
serverStatistics
-
serverStatisticsAsync
-
streaming
-
getDataFormat
-
withDataFormat
public <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat) -
flags
-
withFlags
-
noFlags
-
addClientListener
-
addClientListener
-
removeClientListener
-
execute
-
isTransactional
-
entrySet
-
keySet
-
values
-
entrySet
-
keySet
-
values
-
getAll
-
getWithMetadata
-
getWithMetadataAsync
-
removeWithVersion
-
removeWithVersionAsync
-
replaceWithVersion
-
replaceWithVersion
-
replaceWithVersion
-
replaceWithVersion
-
replaceWithVersionAsync
-
replaceWithVersionAsync
-
replaceWithVersionAsync
-
replaceWithVersionAsync
-
retrieveEntries
-
publishEntries
-
retrieveEntriesByQuery
-
publishEntriesByQuery
-
retrieveEntriesWithMetadata
-
publishEntriesWithMetadata
-
getNameBytes
-
keyIterator
-
entryIterator
-
getWithMetadataAsync
public CompletionStage<org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation.GetWithMetadataResult<V>> getWithMetadataAsync(K key, io.netty.channel.Channel channel) -
flagInt
-
hasForceReturnFlag
-
resolveStorage
-
resolveStorage
-
init
-
init
public void init(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher, ObjectName jmxParent) -
getDispatcher
-
keyToBytes
-
ping
-
addNearCacheListener
-
updateBloomFilter
-
getOperationsFactory
-
getListenerNotifier
-
configuration
-
get
-
getEntry
-
putIfAbsent
-
setIfAbsent
-
put
-
set
-
replace
-
getOrReplaceEntry
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) -
remove
-
remove
public CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) -
getAndRemove
-
keys
-
entries
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options) -
putAll
-
putAll
public CompletionStage<Void> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries, org.infinispan.api.common.CacheWriteOptions options) -
getAll
-
getAll
-
removeAll
-
removeAll
public Flow.Publisher<K> removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
getAndRemoveAll
-
getAndRemoveAll
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
estimateSize
-
clear
-
listen
public Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K,V>> listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types) -
process
-
processAll
public <T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>> processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> processor, org.infinispan.api.common.process.CacheProcessorOptions options) -
equals
-