Interface MultimapCache<K,V>
-
- All Superinterfaces:
BasicMultimapCache<K,V>
public interface MultimapCache<K,V> extends BasicMultimapCache<K,V>
Embedded version of MultimapCache.- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
- See Also:
- Infinispan documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.util.Optional<CacheEntry<K,java.util.Collection<V>>>>getEntry(K key)Retrieves a CacheEntry corresponding to a specific key in this multimap cache.java.util.concurrent.CompletableFuture<java.lang.Void>remove(java.util.function.Predicate<? super V> p)Asynchronous method.default java.util.concurrent.CompletableFuture<java.lang.Void>remove(SerializablePredicate<? super V> p)Overloaded method ofremove(Predicate)withSerializablePredicate.-
Methods inherited from interface org.infinispan.multimap.api.BasicMultimapCache
containsEntry, containsKey, containsValue, get, put, remove, remove, size, supportsDuplicates
-
-
-
-
Method Detail
-
getEntry
java.util.concurrent.CompletableFuture<java.util.Optional<CacheEntry<K,java.util.Collection<V>>>> getEntry(K key)
Retrieves a CacheEntry corresponding to a specific key in this multimap cache.- Parameters:
key- the key whose associated cache entry is to be returned- Returns:
- the cache entry to which the specified key is mapped, or
Optional.empty()if this multimap contains no mapping for the key - Since:
- 9.2
-
remove
java.util.concurrent.CompletableFuture<java.lang.Void> remove(java.util.function.Predicate<? super V> p)
Asynchronous method. Removes every value that match thePredicate.This method is blocking used in a explicit transaction context.
- Parameters:
p- the predicate to be tested on every value in this multimap cache- Returns:
CompletableFuturecontaining aVoid- Since:
- 9.2
-
remove
default java.util.concurrent.CompletableFuture<java.lang.Void> remove(SerializablePredicate<? super V> p)
Overloaded method ofremove(Predicate)withSerializablePredicate. The compiler will pick up this method and make the given predicateSerializable.- Parameters:
p- the predicate to be tested on every value in this multimap cache- Returns:
CompletableFuturecontaining aVoid- Since:
- 9.2
-
-