public interface AsyncMap<K,V>
An asynchronous map.
Modifier and Type | Method and Description |
---|---|
void |
clear(Handler<AsyncResult<Void>> resultHandler) |
void |
get(K k,
Handler<AsyncResult<V>> resultHandler)
Get a value from the map, asynchronously.
|
void |
put(K k,
V v,
Handler<AsyncResult<Void>> completionHandler)
Put a value in the map, asynchronously.
|
void |
put(K k,
V v,
long timeout,
Handler<AsyncResult<Void>> completionHandler) |
void |
putIfAbsent(K k,
V v,
Handler<AsyncResult<V>> completionHandler) |
void |
putIfAbsent(K k,
V v,
long timeout,
Handler<AsyncResult<V>> completionHandler) |
void |
remove(K k,
Handler<AsyncResult<V>> resultHandler)
Remove a value from the map, asynchronously.
|
void |
removeIfPresent(K k,
V v,
Handler<AsyncResult<Boolean>> resultHandler) |
void |
replace(K k,
V v,
Handler<AsyncResult<V>> resultHandler) |
void |
replaceIfPresent(K k,
V oldValue,
V newValue,
Handler<AsyncResult<Boolean>> resultHandler) |
void |
size(Handler<AsyncResult<Integer>> resultHandler) |
void get(K k, Handler<AsyncResult<V>> resultHandler)
Get a value from the map, asynchronously.
k
- The keyresultHandler
- - this will be called some time later with the async result.void put(K k, V v, Handler<AsyncResult<Void>> completionHandler)
Put a value in the map, asynchronously.
k
- The keyv
- The valuecompletionHandler
- - this will be called some time later to signify the value has been putvoid put(K k, V v, long timeout, Handler<AsyncResult<Void>> completionHandler)
void putIfAbsent(K k, V v, Handler<AsyncResult<V>> completionHandler)
void putIfAbsent(K k, V v, long timeout, Handler<AsyncResult<V>> completionHandler)
void remove(K k, Handler<AsyncResult<V>> resultHandler)
Remove a value from the map, asynchronously.
k
- The keyresultHandler
- - this will be called some time later to signify the value has been removedvoid removeIfPresent(K k, V v, Handler<AsyncResult<Boolean>> resultHandler)
void replace(K k, V v, Handler<AsyncResult<V>> resultHandler)
void replaceIfPresent(K k, V oldValue, V newValue, Handler<AsyncResult<Boolean>> resultHandler)
void clear(Handler<AsyncResult<Void>> resultHandler)
void size(Handler<AsyncResult<Integer>> resultHandler)
Copyright © 2014. All Rights Reserved.