Class AbstractRemoteCache<K,V>
java.lang.Object
org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
org.wildfly.clustering.cache.infinispan.remote.AbstractRemoteCache<K,V>
- Type Parameters:
K- the cache key typeV- the cache value type
- All Implemented Interfaces:
ConcurrentMap<K,,V> Function<org.infinispan.client.hotrod.RemoteCache<K,,V>, org.infinispan.client.hotrod.RemoteCache<K, V>> UnaryOperator<org.infinispan.client.hotrod.RemoteCache<K,,V>> Map<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 abstract class AbstractRemoteCache<K,V>
extends org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
implements UnaryOperator<org.infinispan.client.hotrod.RemoteCache<K,V>>
An abstract delegating remote cache implementation.
- Author:
- Paul Ferraro
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.client.hotrod.impl.RemoteCacheSupport
defaultLifespan, defaultMaxIdleTime -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRemoteCache(org.infinispan.client.hotrod.RemoteCache<K, V> cache) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientListener(Object listener) voidaddClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams) org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBeancomputeAsync(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) entrySet(org.infinispan.commons.util.IntSet segments) <T> TSet<org.infinispan.client.hotrod.Flag> flags()getAllAsync(Set<?> keys) org.infinispan.client.hotrod.CacheTopologyInfoorg.infinispan.client.hotrod.DataFormatgetName()org.infinispan.client.hotrod.RemoteCacheContainerCompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key) booleanisEmpty()booleanorg.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments) mergeAsync(K key, V value, BiFunction<? super V, ? super V, ? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) noFlags()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) 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) <T> org.infinispan.commons.api.query.Query<T> 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) 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> 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.RemoteCache <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 java.util.concurrent.ConcurrentMap
forEach, getOrDefaultMethods inherited from interface org.infinispan.client.hotrod.RemoteCache
entrySet, execute, execute, getRemoteCacheManager, keySet, retrieveEntries, retrieveEntries, valuesMethods inherited from interface org.infinispan.commons.api.TransactionalCache
getTransactionManager
-
Constructor Details
-
AbstractRemoteCache
-
-
Method Details
-
replaceWithVersionAsync
-
retrieveEntries
-
publishEntries
-
retrieveEntriesByQuery
-
publishEntriesByQuery
-
retrieveEntriesWithMetadata
-
publishEntriesWithMetadata
-
keySet
public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments) -
values
public org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments) -
entrySet
-
clientStatistics
public org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBean clientStatistics() -
serverStatistics
public org.infinispan.client.hotrod.ServerStatistics serverStatistics() -
serverStatisticsAsync
-
withFlags
-
noFlags
-
flags
-
getRemoteCacheContainer
public org.infinispan.client.hotrod.RemoteCacheContainer getRemoteCacheContainer() -
getProtocolVersion
-
addClientListener
-
addClientListener
-
removeClientListener
-
execute
-
getCacheTopologyInfo
public org.infinispan.client.hotrod.CacheTopologyInfo getCacheTopologyInfo() -
streaming
-
withDataFormat
public <T,U> org.infinispan.client.hotrod.RemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat) -
getDataFormat
public org.infinispan.client.hotrod.DataFormat getDataFormat() -
isTransactional
public boolean isTransactional() -
getName
-
getVersion
-
query
-
continuousQuery
-
clearAsync
-
isEmpty
public boolean isEmpty() -
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
start
public void start()- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
putAllAsync
-
putIfAbsentAsync
-
replaceAsync
-
replaceAsync
-
getAsync
-
getAllAsync
-
getWithMetadataAsync
-
containsKeyAsync
-
putAsync
-
removeAsync
-
removeAsync
-
removeWithVersionAsync
-
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) -
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) -
replaceAll
- Specified by:
replaceAllin interfaceConcurrentMap<K,V> - Specified by:
replaceAllin interfaceMap<K,V> - Specified by:
replaceAllin classorg.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
-
sizeAsync
-