Class ReadForUpdateRemoteCache<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>
org.wildfly.clustering.cache.infinispan.remote.ReadForUpdateRemoteCache<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

public class ReadForUpdateRemoteCache<K,V> extends RemoteCacheDecorator<K,V>
A remote cache that performs locking reads if a transaction is active.
Author:
Paul Ferraro
  • Constructor Details

    • ReadForUpdateRemoteCache

      public ReadForUpdateRemoteCache(org.infinispan.client.hotrod.impl.InternalRemoteCache<K,V> cache)
      Creates a read-for-update remote cache decorator.
      Parameters:
      cache - the decorated remote cache.
  • Method Details

    • getAsync

      public CompletableFuture<V> getAsync(K key)
      Specified by:
      getAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      getAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<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>
      Overrides:
      getWithMetadataAsync in class RemoteCacheDecorator<K,V>
    • getAllAsync

      public CompletableFuture<Map<K,V>> getAllAsync(Set<?> keys)
      Specified by:
      getAllAsync in interface org.infinispan.commons.api.AsyncCache<K,V>
      Overrides:
      getAllAsync in class org.wildfly.clustering.cache.infinispan.AbstractBasicCacheDecorator<K,V>