public interface MultimapCache<K,V> extends BasicMultimapCache<K,V>
| Modifier and Type | Method and 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 of
remove(Predicate) with SerializablePredicate. |
containsEntry, containsKey, containsValue, get, put, remove, remove, size, supportsDuplicatesjava.util.concurrent.CompletableFuture<java.util.Optional<CacheEntry<K,java.util.Collection<V>>>> getEntry(K key)
key - the key whose associated cache entry is to be returnedOptional.empty() if this multimap
contains no mapping for the keyjava.util.concurrent.CompletableFuture<java.lang.Void> remove(java.util.function.Predicate<? super V> p)
Predicate.
This method is blocking used in a explicit transaction context.
p - the predicate to be tested on every value in this multimap cacheCompletableFuture containing a Voiddefault java.util.concurrent.CompletableFuture<java.lang.Void> remove(SerializablePredicate<? super V> p)
remove(Predicate) with SerializablePredicate. The compiler will
pick up this method and make the given predicate Serializable.p - the predicate to be tested on every value in this multimap cacheCompletableFuture containing a Void