Class RemoteCacheDecorator<K,V>

java.lang.Object
org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator<K,V>
org.wildfly.clustering.cache.infinispan.remote.RemoteCacheDecorator<K,V>
Type Parameters:
K - the cache key type
V - the cache value type
All Implemented Interfaces:
ConcurrentMap<K,V>, 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
Direct Known Subclasses:
ReadForUpdateRemoteCache

public class RemoteCacheDecorator<K,V> extends org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator<K,V> implements org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
An abstract delegating remote cache implementation. N.B. Implements InternalRemoteCache to support casting, as required by Search.getQueryFactory(RemoteCache).
Author:
Paul Ferraro
  • Constructor Details

    • RemoteCacheDecorator

      protected RemoteCacheDecorator(org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V> cache, UnaryOperator<org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>> decorator)
      Creates a remote cache decorator.
      Parameters:
      cache - the decorated remote cache
      decorator - the cache decorator.
  • Method Details

    • query

      public <T> org.infinispan.commons.api.query.Query<T> query(String query)
      Specified by:
      query in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      query in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • continuousQuery

      public org.infinispan.commons.api.query.ContinuousQuery<K,V> continuousQuery()
      Specified by:
      continuousQuery in interface org.infinispan.commons.api.BasicCache<K,V>
      Overrides:
      continuousQuery in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • join

      protected <T> T join(CompletableFuture<T> future)
      Overrides:
      join in class org.wildfly.clustering.cache.infinispan.BlockingBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putAsync

      public CompletableFuture<V> putAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
      Specified by:
      putAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Specified by:
      putAllAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      putAllAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Specified by:
      putAllAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      putAllAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K, ? extends V> data, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
      Specified by:
      putAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Specified by:
      putAllAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      putAllAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • putIfAbsentAsync

      public CompletableFuture<V> putIfAbsentAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
      Specified by:
      putIfAbsentAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      putIfAbsentAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<V> replaceAsync(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(K key, V oldValue, V newValue, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
      Specified by:
      replaceAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      replaceAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • getCacheTopologyInfo

      public org.infinispan.client.hotrod.CacheTopologyInfo getCacheTopologyInfo()
      Specified by:
      getCacheTopologyInfo in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getProtocolVersion

      public String getProtocolVersion()
      Specified by:
      getProtocolVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getRemoteCacheContainer

      public org.infinispan.client.hotrod.RemoteCacheContainer getRemoteCacheContainer()
      Specified by:
      getRemoteCacheContainer in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getRemoteCacheManager

      @Deprecated public org.infinispan.client.hotrod.RemoteCacheManager getRemoteCacheManager()
      Deprecated.
      Specified by:
      getRemoteCacheManager in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getTransactionManager

      public jakarta.transaction.TransactionManager getTransactionManager()
      Specified by:
      getTransactionManager in interface org.infinispan.commons.api.TransactionalCache
    • clientStatistics

      public org.infinispan.client.hotrod.impl.ClientStatistics clientStatistics()
      Specified by:
      clientStatistics in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
      Specified by:
      clientStatistics in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • serverStatistics

      public org.infinispan.client.hotrod.ServerStatistics serverStatistics()
      Specified by:
      serverStatistics in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • serverStatisticsAsync

      public CompletionStage<org.infinispan.client.hotrod.ServerStatistics> serverStatisticsAsync()
      Specified by:
      serverStatisticsAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • streaming

      public org.infinispan.client.hotrod.StreamingRemoteCache<K> streaming()
      Specified by:
      streaming in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getDataFormat

      public org.infinispan.client.hotrod.DataFormat getDataFormat()
      Specified by:
      getDataFormat in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • withDataFormat

      public <T,U> org.infinispan.client.hotrod.impl.InternalRemoteCache<T,U> withDataFormat(org.infinispan.client.hotrod.DataFormat dataFormat)
      Specified by:
      withDataFormat in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
      Specified by:
      withDataFormat in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • flags

      public Set<org.infinispan.client.hotrod.Flag> flags()
      Specified by:
      flags in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • withFlags

      public org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V> withFlags(org.infinispan.client.hotrod.Flag... flags)
      Specified by:
      withFlags in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
      Specified by:
      withFlags in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • noFlags

      public org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V> noFlags()
      Specified by:
      noFlags in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
      Specified by:
      noFlags in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • addClientListener

      public void addClientListener(Object listener)
      Specified by:
      addClientListener in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • addClientListener

      public void addClientListener(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams)
      Specified by:
      addClientListener in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • removeClientListener

      public void removeClientListener(Object listener)
      Specified by:
      removeClientListener in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • execute

      public <T> T execute(String taskName, Map<String,?> params)
      Specified by:
      execute in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • isTransactional

      public boolean isTransactional()
      Specified by:
      isTransactional in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • entrySet

      public org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
      Specified by:
      entrySet in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      entrySet in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • keySet

      public org.infinispan.commons.util.CloseableIteratorSet<K> keySet()
      Specified by:
      keySet in interface Map<K,V>
      Specified by:
      keySet in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      keySet in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • values

      public org.infinispan.commons.util.CloseableIteratorCollection<V> values()
      Specified by:
      values in interface Map<K,V>
      Specified by:
      values in interface org.infinispan.client.hotrod.RemoteCache<K,V>
      Overrides:
      values in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>
    • entrySet

      public org.infinispan.commons.util.CloseableIteratorSet<Map.Entry<K,V>> entrySet(org.infinispan.commons.util.IntSet segments)
      Specified by:
      entrySet in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • keySet

      public org.infinispan.commons.util.CloseableIteratorSet<K> keySet(org.infinispan.commons.util.IntSet segments)
      Specified by:
      keySet in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • values

      public org.infinispan.commons.util.CloseableIteratorCollection<V> values(org.infinispan.commons.util.IntSet segments)
      Specified by:
      values in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getAll

      public Map<K,V> getAll(Set<? extends K> keys)
      Specified by:
      getAll in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getWithMetadata

      public org.infinispan.client.hotrod.MetadataValue<V> getWithMetadata(K key)
      Specified by:
      getWithMetadata in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getWithMetadataAsync

      public CompletableFuture<org.infinispan.client.hotrod.MetadataValue<V>> getWithMetadataAsync(K key)
      Specified by:
      getWithMetadataAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • removeWithVersion

      public boolean removeWithVersion(K key, long version)
      Specified by:
      removeWithVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • removeWithVersionAsync

      public CompletableFuture<Boolean> removeWithVersionAsync(K key, long version)
      Specified by:
      removeWithVersionAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersion

      public boolean replaceWithVersion(K key, V newValue, long version)
      Specified by:
      replaceWithVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersion

      public boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds)
      Specified by:
      replaceWithVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersion

      public boolean replaceWithVersion(K key, V newValue, long version, int lifespanSeconds, int maxIdleTimeSeconds)
      Specified by:
      replaceWithVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersion

      public boolean replaceWithVersion(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
      Specified by:
      replaceWithVersion in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersionAsync

      public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version)
      Specified by:
      replaceWithVersionAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersionAsync

      public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds)
      Specified by:
      replaceWithVersionAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersionAsync

      public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, int lifespanSeconds, int maxIdleSeconds)
      Specified by:
      replaceWithVersionAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • replaceWithVersionAsync

      public CompletableFuture<Boolean> replaceWithVersionAsync(K key, V newValue, long version, long lifespanSeconds, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit)
      Specified by:
      replaceWithVersionAsync in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • retrieveEntries

      public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
      Specified by:
      retrieveEntries in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • publishEntries

      public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntries(String filterConverterFactory, Object[] filterConverterParams, Set<Integer> segments, int batchSize)
      Specified by:
      publishEntries in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • retrieveEntriesByQuery

      public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object,Object>> retrieveEntriesByQuery(org.infinispan.commons.api.query.Query<?> filterQuery, Set<Integer> segments, int batchSize)
      Specified by:
      retrieveEntriesByQuery in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • publishEntriesByQuery

      public <E> org.reactivestreams.Publisher<Map.Entry<K,E>> publishEntriesByQuery(org.infinispan.commons.api.query.Query<?> filterQuery, Set<Integer> segments, int batchSize)
      Specified by:
      publishEntriesByQuery in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • retrieveEntriesWithMetadata

      public org.infinispan.commons.util.CloseableIterator<Map.Entry<Object, org.infinispan.client.hotrod.MetadataValue<Object>>> retrieveEntriesWithMetadata(Set<Integer> segments, int batchSize)
      Specified by:
      retrieveEntriesWithMetadata in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • publishEntriesWithMetadata

      public org.reactivestreams.Publisher<Map.Entry<K, org.infinispan.client.hotrod.MetadataValue<V>>> publishEntriesWithMetadata(Set<Integer> segments, int batchSize)
      Specified by:
      publishEntriesWithMetadata in interface org.infinispan.client.hotrod.RemoteCache<K,V>
    • getNameBytes

      public byte[] getNameBytes()
      Specified by:
      getNameBytes in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • keyIterator

      public org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments)
      Specified by:
      keyIterator in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • entryIterator

      public org.infinispan.commons.util.CloseableIterator<Map.Entry<K,V>> entryIterator(org.infinispan.commons.util.IntSet segments)
      Specified by:
      entryIterator in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getWithMetadataAsync

      public CompletionStage<org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation.GetWithMetadataResult<V>> getWithMetadataAsync(K key, io.netty.channel.Channel channel)
      Specified by:
      getWithMetadataAsync in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • flagInt

      public int flagInt()
      Specified by:
      flagInt in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • hasForceReturnFlag

      public boolean hasForceReturnFlag()
      Specified by:
      hasForceReturnFlag in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • resolveStorage

      public void resolveStorage()
      Specified by:
      resolveStorage in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • resolveStorage

      public void resolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value)
      Specified by:
      resolveStorage in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • init

      public void init(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher)
      Specified by:
      init in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • init

      public void init(org.infinispan.client.hotrod.configuration.Configuration configuration, org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher, ObjectName jmxParent)
      Specified by:
      init in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getDispatcher

      public org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher getDispatcher()
      Specified by:
      getDispatcher in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • keyToBytes

      public byte[] keyToBytes(Object o)
      Specified by:
      keyToBytes in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • ping

      public CompletionStage<org.infinispan.client.hotrod.impl.operations.PingResponse> ping()
      Specified by:
      ping in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • addNearCacheListener

      public io.netty.channel.Channel addNearCacheListener(Object listener, int bloomBits)
      Specified by:
      addNearCacheListener in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • updateBloomFilter

      public CompletionStage<Void> updateBloomFilter()
      Specified by:
      updateBloomFilter in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getOperationsFactory

      public org.infinispan.client.hotrod.impl.operations.CacheOperationsFactory getOperationsFactory()
      Specified by:
      getOperationsFactory in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getListenerNotifier

      public org.infinispan.client.hotrod.event.impl.ClientListenerNotifier getListenerNotifier()
      Specified by:
      getListenerNotifier in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • configuration

      public CompletionStage<org.infinispan.api.configuration.CacheConfiguration> configuration()
      Specified by:
      configuration in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • get

      public CompletionStage<V> get(K key, org.infinispan.api.common.CacheOptions options)
      Specified by:
      get in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getEntry

      public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options)
      Specified by:
      getEntry in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • putIfAbsent

      public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      putIfAbsent in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • setIfAbsent

      public CompletionStage<Boolean> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      setIfAbsent in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • put

      public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> put(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      put in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • set

      public CompletionStage<Void> set(K key, V value, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      set in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • replace

      public CompletionStage<Boolean> replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      replace in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • 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)
      Specified by:
      getOrReplaceEntry in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • remove

      public CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheOptions options)
      Specified by:
      remove in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • remove

      public CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options)
      Specified by:
      remove in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getAndRemove

      public CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options)
      Specified by:
      getAndRemove in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • keys

      public Flow.Publisher<K> keys(org.infinispan.api.common.CacheOptions options)
      Specified by:
      keys in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • entries

      public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options)
      Specified by:
      entries in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • putAll

      public CompletionStage<Void> putAll(Map<K,V> entries, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      putAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • putAll

      public CompletionStage<Void> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      putAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getAll

      public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(Set<K> keys, org.infinispan.api.common.CacheOptions options)
      Specified by:
      getAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getAll

      public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(org.infinispan.api.common.CacheOptions options, K[] keys)
      Specified by:
      getAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • removeAll

      public Flow.Publisher<K> removeAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      removeAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • removeAll

      public Flow.Publisher<K> removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      removeAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getAndRemoveAll

      public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      getAndRemoveAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • getAndRemoveAll

      public Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options)
      Specified by:
      getAndRemoveAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • estimateSize

      public CompletionStage<Long> estimateSize(org.infinispan.api.common.CacheOptions options)
      Specified by:
      estimateSize in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • clear

      public CompletionStage<Void> clear(org.infinispan.api.common.CacheOptions options)
      Specified by:
      clear in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • 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)
      Specified by:
      listen in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • process

      public <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)
      Specified by:
      process in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • 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)
      Specified by:
      processAll in interface org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V>
    • equals

      public boolean equals(Object object)
      Specified by:
      equals in interface Map<K,V>
      Overrides:
      equals in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>