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,RemoteCache<K,V>
public class ManagedRemoteCache<K,V>
extends org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
implements org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>, RemoteCache<K,V>, UnaryOperator<org.wildfly.clustering.server.Registration>
- 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) addNearCacheListener(Object listener, int bloomBits) org.wildfly.clustering.server.Registrationapply(org.wildfly.clustering.server.Registration registration) 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) containsKeyAsync(K key) booleancontainsValue(Object value) entryIterator(org.infinispan.commons.util.IntSet segments) entrySet(org.infinispan.commons.util.IntSet segments) <T> TgetAllAsync(Set<?> keys) org.infinispan.client.hotrod.CacheTopologyInfoorg.infinispan.client.hotrod.DataFormatDeprecated.getName()org.infinispan.client.hotrod.impl.operations.OperationsFactoryorg.infinispan.client.hotrod.RemoteCacheManagerDeprecated.jakarta.transaction.TransactionManagerCompletableFuture<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) booleanvoidinit(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()booleanbooleanorg.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) 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()publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize) publishEntriesByQuery(org.infinispan.query.dsl.Query<?> filterQuery, Set<Integer> segments, int batchSize) publishEntriesWithMetadata(Set<Integer> segments, int batchSize) putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) removeAsync(Object key) removeAsync(Object key, Object value) voidremoveClientListener(Object listener) removeWithVersionAsync(K key, long version) 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) voidresolveStorage(boolean objectStorage) retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize) 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.ServerStatisticsCompletionStage<org.infinispan.client.hotrod.ServerStatistics>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, stats, 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
- Specified by:
getRemoteCacheContainerin interfaceorg.infinispan.client.hotrod.RemoteCache<K,V> - Specified by:
getRemoteCacheContainerin interfaceRemoteCache<K,V>
-
getRemoteCacheManager
Deprecated. -
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() -
getListeners
Deprecated. -
getProtocolVersion
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments) -
removeClientListener
-
replaceWithVersionAsync
-
retrieveEntries
-
retrieveEntriesByQuery
-
retrieveEntriesWithMetadata
-
publishEntries
-
publishEntriesByQuery
-
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) -
withDataFormat
public <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat) -
withFlags
-
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
-
keyIterator
public org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) -
entryIterator
-
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
-
ping
-
addNearCacheListener
-
updateBloomFilter
-