Class ManagedRemoteCache<K,V>
java.lang.Object
org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
org.jboss.as.clustering.infinispan.client.ManagedRemoteCache<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,,V> Function<org.wildfly.clustering.server.Registration,,org.wildfly.clustering.server.Registration> UnaryOperator<org.wildfly.clustering.server.Registration>,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
public class ManagedRemoteCache<K,V>
extends org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
implements org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>, UnaryOperator<org.wildfly.clustering.server.Registration>
RemoteCache decorator that handles registration on start() and deregistration on stop().
N.B. Implements InternalRemoteCache to support casting, as required by Search.getQueryFactory(RemoteCache).- Author:
- Paul Ferraro
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.client.hotrod.impl.RemoteCacheSupport
defaultLifespan, defaultMaxIdleTime -
Constructor Summary
ConstructorsConstructorDescriptionManagedRemoteCache(RemoteCacheContainer container, org.infinispan.client.hotrod.RemoteCacheManager manager, org.infinispan.client.hotrod.RemoteCache<K, V> cache, org.wildfly.clustering.server.Registrar<String> registrar) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientListener(Object listener) voidaddClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams) io.netty.channel.ChanneladdNearCacheListener(Object listener, int bloomBits) org.wildfly.clustering.server.Registrationapply(org.wildfly.clustering.server.Registration registration) clear(org.infinispan.api.common.CacheOptions options) org.infinispan.client.hotrod.impl.ClientStatisticscomputeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) computeIfAbsentAsync(K key, Function<? super K, ? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) CompletionStage<org.infinispan.api.configuration.CacheConfiguration>containsKeyAsync(K key) booleancontainsValue(Object value) Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options) entryIterator(org.infinispan.commons.util.IntSet segments) entrySet(org.infinispan.commons.util.IntSet segments) estimateSize(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>> getAllAsync(Set<?> keys) 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.ClientListenerNotifiergetName()byte[]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.RemoteCacheManagerDeprecated.jakarta.transaction.TransactionManagerCompletableFuture<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) booleanisEmpty()booleanorg.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.IntSet segments) byte[]keyToBytes(Object key) 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) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) 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, 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, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) <T> org.infinispan.commons.api.query.Query<T>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) removeAsync(Object key) removeAsync(Object key, Object value) voidremoveClientListener(Object listener) removeWithVersionAsync(K key, long version) replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) voidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit) voidretrieveEntries(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) voidstart()voidstop()org.infinispan.client.hotrod.StreamingRemoteCache<K>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.infinispan.client.hotrod.impl.RemoteCacheSupport
clear, compute, compute, compute, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresent, computeIfPresent, computeIfPresentAsync, computeIfPresentAsync, containsKey, get, getAll, getWithMetadata, merge, merge, merge, mergeAsync, mergeAsync, put, put, put, putAll, putAll, putAll, putAllAsync, putAllAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, remove, remove, removeWithVersion, replace, replace, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersionAsync, replaceWithVersionAsync, replaceWithVersionAsync, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.api.AsyncCache
computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, mergeAsync, mergeAsync, putAsync, putAsync, putIfAbsentAsync, putIfAbsentAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsyncMethods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, merge, merge, put, put, put, putIfAbsent, putIfAbsent, replace, replaceMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replaceMethods inherited from interface org.infinispan.client.hotrod.impl.InternalRemoteCache
removeEntry, removeEntry, resolveStorageMethods inherited from interface org.infinispan.client.hotrod.RemoteCache
entrySet, execute, execute, getAll, getWithMetadata, keySet, putAll, putAll, putAll, putAllAsync, putAllAsync, remove, remove, removeWithVersion, replace, replace, replace, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersionAsync, replaceWithVersionAsync, replaceWithVersionAsync, retrieveEntries, retrieveEntries, values
-
Constructor Details
-
ManagedRemoteCache
public ManagedRemoteCache(RemoteCacheContainer container, org.infinispan.client.hotrod.RemoteCacheManager manager, org.infinispan.client.hotrod.RemoteCache<K, V> cache, org.wildfly.clustering.server.Registrar<String> registrar)
-
-
Method Details
-
isTransactional
public boolean isTransactional() -
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin interfaceorg.infinispan.commons.api.TransactionalCache
-
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
apply
public org.wildfly.clustering.server.Registration apply(org.wildfly.clustering.server.Registration registration) -
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
getRemoteCacheContainer
-
getRemoteCacheManager
Deprecated. -
withFlags
-
noFlags
-
withDataFormat
public <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat) -
addClientListener
-
addClientListener
-
clientStatistics
public org.infinispan.client.hotrod.impl.ClientStatistics clientStatistics() -
entrySet
-
execute
-
getCacheTopologyInfo
public org.infinispan.client.hotrod.CacheTopologyInfo getCacheTopologyInfo() -
getDataFormat
public org.infinispan.client.hotrod.DataFormat getDataFormat() -
getProtocolVersion
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments) -
removeClientListener
-
replaceWithVersionAsync
-
retrieveEntries
-
retrieveEntriesWithMetadata
-
publishEntries
-
publishEntriesWithMetadata
-
serverStatistics
public org.infinispan.client.hotrod.ServerStatistics serverStatistics() -
streaming
-
values
public org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments) -
getName
-
getVersion
-
clearAsync
-
isEmpty
public boolean isEmpty() -
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
computeAsync
public CompletableFuture<V> computeAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) -
computeIfAbsentAsync
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) -
containsKeyAsync
-
getAllAsync
-
getAsync
-
getWithMetadataAsync
-
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) -
putAllAsync
-
putAsync
-
putIfAbsentAsync
-
removeAsync
-
removeAsync
-
removeWithVersionAsync
-
replaceAll
- Specified by:
replaceAllin interfaceConcurrentMap<K,V> - Specified by:
replaceAllin interfaceMap<K,V> - Specified by:
replaceAllin classorg.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
-
replaceAsync
-
replaceAsync
-
sizeAsync
-
serverStatisticsAsync
-
query
-
continuousQuery
-
retrieveEntriesByQuery
-
publishEntriesByQuery
-
flags
-
getNameBytes
public byte[] getNameBytes() -
keyIterator
public org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) -
entryIterator
-
getWithMetadataAsync
public CompletionStage<org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation.GetWithMetadataResult<V>> getWithMetadataAsync(K key, io.netty.channel.Channel channel) -
flagInt
public int flagInt() -
hasForceReturnFlag
public boolean hasForceReturnFlag() -
resolveStorage
public void resolveStorage() -
init
public void init(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher) -
init
public void init(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher, ObjectName jmxParent) -
getDispatcher
public org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher getDispatcher() -
keyToBytes
-
ping
-
addNearCacheListener
-
updateBloomFilter
-
getOperationsFactory
public org.infinispan.client.hotrod.impl.operations.CacheOperationsFactory getOperationsFactory() -
getListenerNotifier
public org.infinispan.client.hotrod.event.impl.ClientListenerNotifier getListenerNotifier() -
configuration
-
get
-
getEntry
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options) -
putIfAbsent
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
setIfAbsent
public CompletionStage<Boolean> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
put
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> put(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
set
public CompletionStage<Void> set(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
replace
public CompletionStage<Boolean> replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) -
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
public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) -
keys
-
entries
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options) -
putAll
public CompletionStage<Void> putAll(Map<K, V> entries, org.infinispan.api.common.CacheWriteOptions options) -
putAll
public CompletionStage<Void> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries, org.infinispan.api.common.CacheWriteOptions options) -
getAll
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(Set<K> keys, org.infinispan.api.common.CacheOptions options) -
getAll
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(org.infinispan.api.common.CacheOptions options, K[] keys) -
removeAll
public Flow.Publisher<K> removeAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
removeAll
public Flow.Publisher<K> removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
getAndRemoveAll
public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
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)
-