public interface MultimapCache<K,V> extends BasicMultimapCache<K,V>
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Optional<CacheEntry<K,Collection<V>>>> |
getEntry(K key)
Retrieves a CacheEntry corresponding to a specific key in this multimap cache.
|
CompletableFuture<Void> |
remove(Predicate<? super V> p)
Asynchronous method.
|
default CompletableFuture<Void> |
remove(SerializablePredicate<? super V> p)
Overloaded method of
remove(Predicate) with SerializablePredicate . |
containsEntry, containsKey, containsValue, get, put, remove, remove, size, supportsDuplicates
CompletableFuture<Optional<CacheEntry<K,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 keyCompletableFuture<Void> remove(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 Void
default CompletableFuture<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
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.