public class InfinispanAsyncMultiMap<K,V> extends Object implements AsyncMultiMap<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
InfinispanAsyncMultiMap.EventConverterExternalizer |
static class |
InfinispanAsyncMultiMap.EventFilterExternalizer |
static class |
InfinispanAsyncMultiMap.ModifiedCollectionExternalizer |
| Constructor and Description |
|---|
InfinispanAsyncMultiMap(Vertx vertx,
org.infinispan.multimap.impl.EmbeddedMultimapCache<Object,Object> multimapCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(K k,
V v,
Handler<AsyncResult<Void>> completionHandler)
Add a value to the values for that key in the map.
|
void |
clearCache() |
void |
get(K k,
Handler<AsyncResult<ChoosableIterable<V>>> resultHandler)
Get the values from the map for the key.
|
void |
remove(K k,
V v,
Handler<AsyncResult<Boolean>> completionHandler)
Remove a value from the values of that key in the map.
|
void |
removeAllForValue(V v,
Handler<AsyncResult<Void>> completionHandler)
Remove the specified value from all values found
equals associated to all keys in the map. |
void |
removeAllMatching(Predicate<V> p,
Handler<AsyncResult<Void>> completionHandler)
Remove values which satisfies the given predicate in all keys.
|
public void add(K k, V v, Handler<AsyncResult<Void>> completionHandler)
AsyncMultiMapadd in interface AsyncMultiMap<K,V>k - The keyv - The valuecompletionHandler - This will be called when the entry has been addedpublic void get(K k, Handler<AsyncResult<ChoosableIterable<V>>> resultHandler)
AsyncMultiMapChoosableIterable must
be returned.get in interface AsyncMultiMap<K,V>k - The keyresultHandler - This will be called with the list of values for the key. The type of the values returned
must be ChoosableIterablepublic void remove(K k, V v, Handler<AsyncResult<Boolean>> completionHandler)
AsyncMultiMapremove in interface AsyncMultiMap<K,V>k - The keyv - The valuecompletionHandler - This will be called with true if the value was found and false otherwise,
when the remove is completepublic void removeAllForValue(V v, Handler<AsyncResult<Void>> completionHandler)
AsyncMultiMapequals associated to all keys in the map.removeAllForValue in interface AsyncMultiMap<K,V>v - The valuecompletionHandler - This will be called when the remove is completepublic void removeAllMatching(Predicate<V> p, Handler<AsyncResult<Void>> completionHandler)
AsyncMultiMapremoveAllMatching in interface AsyncMultiMap<K,V>p - The predicatecompletionHandler - This will be called when the remove is completepublic void clearCache()
Copyright © 2020. All rights reserved.