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<Registration,Registration>,UnaryOperator<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<Registration>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ManagedRemoteCache(RemoteCacheContainer container, org.infinispan.client.hotrod.RemoteCacheManager manager, org.infinispan.client.hotrod.RemoteCache<K,V> cache, Registrar<String> registrar)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddClientListener(Object listener)voidaddClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)SocketAddressaddNearCacheListener(Object listener, int bloomBits)Registrationapply(Registration registration)CompletableFuture<Void>clearAsync()org.infinispan.client.hotrod.impl.ClientStatisticsclientStatistics()CompletableFuture<V>computeAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<Boolean>containsKeyAsync(K key)booleancontainsValue(Object value)org.infinispan.commons.util.CloseableIterator<Map.Entry<K,V>>entryIterator(org.infinispan.commons.util.IntSet segments)org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>>entrySet(org.infinispan.commons.util.IntSet segments)<T> Texecute(String taskName, Map<String,?> params)CompletableFuture<Map<K,V>>getAllAsync(Set<?> keys)CompletableFuture<V>getAsync(K key)org.infinispan.client.hotrod.CacheTopologyInfogetCacheTopologyInfo()org.infinispan.client.hotrod.DataFormatgetDataFormat()Set<Object>getListeners()Deprecated.StringgetName()org.infinispan.client.hotrod.impl.operations.OperationsFactorygetOperationsFactory()StringgetProtocolVersion()RemoteCacheContainergetRemoteCacheContainer()org.infinispan.client.hotrod.RemoteCacheManagergetRemoteCacheManager()Deprecated.jakarta.transaction.TransactionManagergetTransactionManager()StringgetVersion()CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>>getWithMetadataAsync(K key)org.infinispan.client.hotrod.impl.operations.RetryAwareCompletionStage<org.infinispan.client.hotrod.MetadataValue<V>>getWithMetadataAsync(K key, SocketAddress preferredAddress)booleanhasForceReturnFlag()voidinit(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, org.infinispan.client.hotrod.configuration.Configuration configuration)voidinit(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, org.infinispan.client.hotrod.configuration.Configuration configuration, ObjectName jmxParent)booleanisEmpty()booleanisObjectStorage()booleanisTransactional()KkeyAsObjectIfNeeded(Object key)org.infinispan.commons.util.CloseableIterator<K>keyIterator(org.infinispan.commons.util.IntSet segments)org.infinispan.commons.util.CloseableIteratorSet<K>keySet(org.infinispan.commons.util.IntSet segments)byte[]keyToBytes(Object object)CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)CompletionStage<org.infinispan.client.hotrod.impl.operations.PingResponse>ping()<E> org.reactivestreams.Publisher<Map.Entry<K,E>>publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)<E> org.reactivestreams.Publisher<Map.Entry<K,E>>publishEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)org.reactivestreams.Publisher<Map.Entry<K,org.infinispan.client.hotrod.MetadataValue<V>>>publishEntriesWithMetadata(Set<Integer> segments, int batchSize)CompletableFuture<Void>putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<V>removeAsync(Object key)CompletableFuture<Boolean>removeAsync(Object key, Object value)voidremoveClientListener(Object listener)CompletableFuture<Boolean>removeWithVersionAsync(K key, long version)voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)CompletableFuture<V>replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<Boolean>replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletableFuture<Boolean>replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)voidresolveStorage(boolean objectStorage)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>>retrieveEntriesByQuery(org.infinispan.query.dsl.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.ServerStatisticsserverStatistics()CompletionStage<org.infinispan.client.hotrod.ServerStatistics>serverStatisticsAsync()CompletableFuture<Long>sizeAsync()voidstart()voidstop()org.infinispan.client.hotrod.StreamingRemoteCache<K>streaming()CompletionStage<Void>updateBloomFilter()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)org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>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, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.api.AsyncCache
computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, mergeAsync, mergeAsync, putAsync, putAsync, putIfAbsentAsync, putIfAbsentAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync
-
Methods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, merge, merge, put, put, put, putIfAbsent, putIfAbsent, replace, replace
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace
-
Methods inherited from interface org.infinispan.client.hotrod.impl.InternalRemoteCache
removeEntry, removeEntry
-
Methods inherited from interface org.infinispan.client.hotrod.RemoteCache
entrySet, execute, getAll, getWithMetadata, keySet, putAll, putAll, putAll, putAllAsync, putAllAsync, remove, remove, removeWithVersion, replace, replace, replace, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersionAsync, replaceWithVersionAsync, replaceWithVersionAsync, retrieveEntries, retrieveEntries, stats, values
-
-
-
-
Constructor Detail
-
ManagedRemoteCache
public ManagedRemoteCache(RemoteCacheContainer container, org.infinispan.client.hotrod.RemoteCacheManager manager, org.infinispan.client.hotrod.RemoteCache<K,V> cache, Registrar<String> registrar)
-
-
Method Detail
-
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 Registration apply(Registration registration)
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
getRemoteCacheContainer
public RemoteCacheContainer getRemoteCacheContainer()
-
getRemoteCacheManager
@Deprecated public org.infinispan.client.hotrod.RemoteCacheManager getRemoteCacheManager()
Deprecated.
-
addClientListener
public void addClientListener(Object listener)
-
addClientListener
public void addClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)
-
clientStatistics
public org.infinispan.client.hotrod.impl.ClientStatistics clientStatistics()
-
entrySet
public org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>> entrySet(org.infinispan.commons.util.IntSet segments)
-
getCacheTopologyInfo
public org.infinispan.client.hotrod.CacheTopologyInfo getCacheTopologyInfo()
-
getDataFormat
public org.infinispan.client.hotrod.DataFormat getDataFormat()
-
getListeners
@Deprecated public Set<Object> getListeners()
Deprecated.
-
getProtocolVersion
public String getProtocolVersion()
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments)
-
removeClientListener
public void removeClientListener(Object listener)
-
replaceWithVersionAsync
public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
-
retrieveEntries
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
-
retrieveEntriesByQuery
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)
-
retrieveEntriesWithMetadata
public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,org.infinispan.client.hotrod.MetadataValue<Object>>> retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)
-
publishEntries
public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
-
publishEntriesByQuery
public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize)
-
publishEntriesWithMetadata
public org.reactivestreams.Publisher<Map.Entry<K,org.infinispan.client.hotrod.MetadataValue<V>>> publishEntriesWithMetadata(Set<Integer> segments, int batchSize)
-
serverStatistics
public org.infinispan.client.hotrod.ServerStatistics serverStatistics()
-
streaming
public org.infinispan.client.hotrod.StreamingRemoteCache<K> streaming()
-
values
public org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments)
-
withDataFormat
public <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat)
-
withFlags
public org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V> withFlags(org.infinispan.client.hotrod.Flag... flags)
-
getName
public String getName()
-
getVersion
public String getVersion()
-
clearAsync
public CompletableFuture<Void> clearAsync()
-
containsValue
public boolean containsValue(Object value)
- 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
public CompletableFuture<V> computeIfAbsentAsync(K key, Function<? super K,? extends V> mappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
computeIfPresentAsync
public CompletableFuture<V> computeIfPresentAsync(K key, BiFunction<? super K,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
containsKeyAsync
public CompletableFuture<Boolean> containsKeyAsync(K key)
-
getAllAsync
public CompletableFuture<Map<K,V>> getAllAsync(Set<?> keys)
-
getAsync
public CompletableFuture<V> getAsync(K key)
-
getWithMetadataAsync
public CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key)
-
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
public CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
putAsync
public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
putIfAbsentAsync
public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
removeAsync
public CompletableFuture<V> removeAsync(Object key)
-
removeAsync
public CompletableFuture<Boolean> removeAsync(Object key, Object value)
-
removeWithVersionAsync
public CompletableFuture<Boolean> removeWithVersionAsync(K key, long version)
-
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
- Specified by:
replaceAllin interfaceConcurrentMap<K,V>- Specified by:
replaceAllin interfaceMap<K,V>- Specified by:
replaceAllin classorg.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
-
replaceAsync
public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
sizeAsync
public CompletableFuture<Long> sizeAsync()
-
serverStatisticsAsync
public CompletionStage<org.infinispan.client.hotrod.ServerStatistics> serverStatisticsAsync()
-
keyIterator
public org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments)
-
entryIterator
public org.infinispan.commons.util.CloseableIterator<Map.Entry<K,V>> entryIterator(org.infinispan.commons.util.IntSet segments)
-
getWithMetadataAsync
public org.infinispan.client.hotrod.impl.operations.RetryAwareCompletionStage<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key, SocketAddress preferredAddress)
-
hasForceReturnFlag
public boolean hasForceReturnFlag()
-
resolveStorage
public void resolveStorage(boolean objectStorage)
-
init
public void init(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, org.infinispan.client.hotrod.configuration.Configuration configuration, ObjectName jmxParent)
-
init
public void init(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, org.infinispan.client.hotrod.configuration.Configuration configuration)
-
getOperationsFactory
public org.infinispan.client.hotrod.impl.operations.OperationsFactory getOperationsFactory()
-
isObjectStorage
public boolean isObjectStorage()
-
keyToBytes
public byte[] keyToBytes(Object object)
-
ping
public CompletionStage<org.infinispan.client.hotrod.impl.operations.PingResponse> ping()
-
addNearCacheListener
public SocketAddress addNearCacheListener(Object listener, int bloomBits)
-
updateBloomFilter
public CompletionStage<Void> updateBloomFilter()
-
-