Class RemoteMultimapCacheImpl<K,V>

java.lang.Object
org.infinispan.client.hotrod.impl.multimap.RemoteMultimapCacheImpl<K,V>
All Implemented Interfaces:
RemoteMultimapCache<K,V>, org.infinispan.multimap.api.BasicMultimapCache<K,V>

public class RemoteMultimapCacheImpl<K,V> extends Object implements RemoteMultimapCache<K,V>
Remote implementation of RemoteMultimapCache
Since:
9.2
Author:
karesti@redhat.com
  • Constructor Details

  • Method Details

    • init

      public void init()
    • put

      public CompletableFuture<Void> put(K key, V value)
      Specified by:
      put in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • get

      public CompletableFuture<Collection<V>> get(K key)
      Specified by:
      get in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • getWithMetadata

      public CompletableFuture<MetadataCollection<V>> getWithMetadata(K key)
      Description copied from interface: RemoteMultimapCache
      Returns a MetadataCollection<V> of the values associated with key in this multimap cache, if any. Any changes to the retrieved collection won't change the values in this multimap cache. When this method returns an empty metadata collection, it means the key was not found.
      Specified by:
      getWithMetadata in interface RemoteMultimapCache<K,V>
      Parameters:
      key - to be retrieved
      Returns:
      the collection with the metadata of the given key
    • remove

      public CompletableFuture<Boolean> remove(K key)
      Specified by:
      remove in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • remove

      public CompletableFuture<Boolean> remove(K key, V value)
      Specified by:
      remove in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • containsKey

      public CompletableFuture<Boolean> containsKey(K key)
      Specified by:
      containsKey in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • containsValue

      public CompletableFuture<Boolean> containsValue(V value)
      Specified by:
      containsValue in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • containsEntry

      public CompletableFuture<Boolean> containsEntry(K key, V value)
      Specified by:
      containsEntry in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • size

      public CompletableFuture<Long> size()
      Specified by:
      size in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>
    • supportsDuplicates

      public boolean supportsDuplicates()
      Specified by:
      supportsDuplicates in interface org.infinispan.multimap.api.BasicMultimapCache<K,V>