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 ofRemoteMultimapCache
- Since:
- 9.2
- Author:
- karesti@redhat.com
-
-
Constructor Summary
Constructors Constructor Description RemoteMultimapCacheImpl(RemoteCacheManager rcm, RemoteCache<K,Collection<V>> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>
containsEntry(K key, V value)
CompletableFuture<Boolean>
containsKey(K key)
CompletableFuture<Boolean>
containsValue(V value)
CompletableFuture<Collection<V>>
get(K key)
CompletableFuture<MetadataCollection<V>>
getWithMetadata(K key)
Returns aMetadataCollection
of the values associated with key in this multimap cache, if any.void
init()
CompletableFuture<Void>
put(K key, V value)
CompletableFuture<Boolean>
remove(K key)
CompletableFuture<Boolean>
remove(K key, V value)
CompletableFuture<Long>
size()
boolean
supportsDuplicates()
-
-
-
Constructor Detail
-
RemoteMultimapCacheImpl
public RemoteMultimapCacheImpl(RemoteCacheManager rcm, RemoteCache<K,Collection<V>> cache)
-
-
Method Detail
-
init
public void init()
-
put
public CompletableFuture<Void> put(K key, V value)
-
get
public CompletableFuture<Collection<V>> get(K key)
-
getWithMetadata
public CompletableFuture<MetadataCollection<V>> getWithMetadata(K key)
Description copied from interface:RemoteMultimapCache
Returns aMetadataCollection
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 interfaceRemoteMultimapCache<K,V>
- Parameters:
key
- to be retrieved- Returns:
- the collection with the metadata of the given key
-
remove
public CompletableFuture<Boolean> remove(K key)
-
remove
public CompletableFuture<Boolean> remove(K key, V value)
-
containsKey
public CompletableFuture<Boolean> containsKey(K key)
-
containsValue
public CompletableFuture<Boolean> containsValue(V value)
-
containsEntry
public CompletableFuture<Boolean> containsEntry(K key, V value)
-
size
public CompletableFuture<Long> size()
-
-