public interface AsyncMap<K,V>
Modifier and Type | Method and Description |
---|---|
void |
get(K k,
Handler<AsyncResult<V>> resultHandler)
Get a value from the map, asynchronously.
|
void |
put(K k,
V v,
Handler<AsyncResult<java.lang.Void>> completionHandler)
Put a value in the map, asynchronously.
|
void |
remove(K k,
Handler<AsyncResult<java.lang.Void>> completionHandler)
Remove a value from the map, asynchronously.
|
void get(K k, Handler<AsyncResult<V>> resultHandler)
k
- The keyresultHandler
- - this will be called some time later with the async result.void put(K k, V v, Handler<AsyncResult<java.lang.Void>> completionHandler)
k
- The keyv
- The valuecompletionHandler
- - this will be called some time later to signify the value has been putvoid remove(K k, Handler<AsyncResult<java.lang.Void>> completionHandler)
k
- The keycompletionHandler
- - this will be called some time later to signify the value has been removed