| Constructor and Description |
|---|
DefaultAsyncMap(String address,
String name,
org.vertx.java.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all keys from the map.
|
void |
clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Clears all keys from the map.
|
void |
containsKey(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks whether the map contains a key.
|
void |
get(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> resultHandler)
Gets a key value from the map.
|
void |
isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks whether the map is empty.
|
void |
keySet(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Set<K>>> resultHandler)
Gets a set of keys in the map.
|
String |
name()
Returns the map name.
|
void |
put(K key,
V value)
Sets a key value in the map.
|
void |
put(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> doneHandler)
Sets a key value in the map.
|
void |
remove(K key)
Removes a key from the map.
|
void |
remove(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> resultHandler)
Removes a key from the map.
|
void |
size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
Gets the current size of the map.
|
void |
values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Gets a collection of values in the map.
|
public void put(K key, V value)
AsyncMappublic void put(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> doneHandler)
AsyncMappublic void get(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> resultHandler)
AsyncMappublic void remove(K key)
AsyncMappublic void remove(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<V>> resultHandler)
AsyncMappublic void containsKey(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMapcontainsKey in interface AsyncMap<K,V>key - The key to check.resultHandler - An asynchronous handler to be called with the result indicating whether
the given key exists in the map.public void keySet(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Set<K>>> resultHandler)
AsyncMappublic void values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
AsyncMappublic void size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
AsyncMappublic void isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
AsyncMappublic void clear()
AsyncMapCopyright © 2013-2014. All Rights Reserved.