Class RegisteredRemoteCache<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V>
-
- org.jboss.as.clustering.infinispan.client.RegisteredRemoteCache<K,V>
-
- All Implemented Interfaces:
ConcurrentMap<K,V>,Function<org.wildfly.clustering.Registration,org.wildfly.clustering.Registration>,UnaryOperator<org.wildfly.clustering.Registration>,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
public class RegisteredRemoteCache<K,V> extends org.infinispan.client.hotrod.impl.RemoteCacheSupport<K,V> implements UnaryOperator<org.wildfly.clustering.Registration>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description RegisteredRemoteCache(org.infinispan.client.hotrod.RemoteCacheManager manager, org.infinispan.client.hotrod.RemoteCache<K,V> cache, org.wildfly.clustering.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)org.wildfly.clustering.Registrationapply(org.wildfly.clustering.Registration registration)CompletableFuture<Void>clearAsync()org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBeanclientStatistics()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.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()StringgetProtocolVersion()org.infinispan.client.hotrod.RemoteCacheManagergetRemoteCacheManager()javax.transaction.TransactionManagergetTransactionManager()StringgetVersion()CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>>getWithMetadataAsync(K key)booleanisEmpty()booleanisTransactional()org.infinispan.commons.util.CloseableIteratorSet<K>keySet(org.infinispan.commons.util.IntSet segments)CompletableFuture<V>mergeAsync(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)<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)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()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)org.infinispan.client.hotrod.RemoteCache<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 java.util.concurrent.ConcurrentMap
forEach, getOrDefault
-
-
-
-
Method Detail
-
isTransactional
public boolean isTransactional()
-
getTransactionManager
public javax.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.Registration apply(org.wildfly.clustering.Registration registration)
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
getRemoteCacheManager
public org.infinispan.client.hotrod.RemoteCacheManager getRemoteCacheManager()
-
addClientListener
public void addClientListener(Object listener)
-
addClientListener
public void addClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)
-
clientStatistics
public org.infinispan.client.hotrod.jmx.RemoteCacheClientStatisticsMXBean 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.RemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat)
-
withFlags
public org.infinispan.client.hotrod.RemoteCache<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()
-
-