public class AsyncMultiMapWrapper<K,V> extends Object implements AsyncMultiMap<K,V>, LambdaLogger
Constructor and Description |
---|
AsyncMultiMapWrapper(String name,
MultiMap<K,V> map,
RpcExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
add(K k,
V v,
Handler<AsyncResult<Void>> handler)
Add a value to the list of values for that key in the map
|
void |
get(K k,
Handler<AsyncResult<ChoosableIterable<V>>> handler)
Get a list of values from the map for the key
|
Logger |
log() |
void |
remove(K k,
V v,
Handler<AsyncResult<Boolean>> handler)
Remove a value from the list of values for that key in the map.
|
void |
removeAllForValue(V v,
Handler<AsyncResult<Void>> handler)
Remove all the specified values from all keys in the map
|
public AsyncMultiMapWrapper(String name, MultiMap<K,V> map, RpcExecutorService executorService)
public void add(K k, V v, Handler<AsyncResult<Void>> handler)
AsyncMultiMap
add
in interface AsyncMultiMap<K,V>
k
- The keyv
- The valuehandler
- This will be called when the entry has been addedpublic void get(K k, Handler<AsyncResult<ChoosableIterable<V>>> handler)
AsyncMultiMap
get
in interface AsyncMultiMap<K,V>
k
- The keyhandler
- This will be called with the list of values for the key. The type of the values returned
must be ChoosableIterable
public void remove(K k, V v, Handler<AsyncResult<Boolean>> handler)
AsyncMultiMap
remove
in interface AsyncMultiMap<K,V>
k
- The keyv
- The valuehandler
- This will be called when the remove is completepublic void removeAllForValue(V v, Handler<AsyncResult<Void>> handler)
AsyncMultiMap
removeAllForValue
in interface AsyncMultiMap<K,V>
v
- The valuehandler
- This will be called when the remove is completepublic Logger log()
log
in interface LambdaLogger
Copyright © 2015. All rights reserved.