K - The map key type.V - The map value type.public interface AsyncMultiMap<K,V>
If the current Vert.x instance is a Hazelcast clustered instance, the map will be backed by a Hazelcast map. Otherwise, the map will be backed by a Vert.x shared data map.
| 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 |
containsEntry(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a key/value pair.
|
void |
containsKey(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a key.
|
void |
containsValue(V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
Checks if the map contains a value.
|
void |
get(K key,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Gets a key value in 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<Boolean>> 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<Collection<V>>> doneHandler)
Removes a key from the map.
|
void |
remove(K key,
V value)
Removes a value from a key in the map.
|
void |
remove(K key,
V value,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
Removes a value from a key in 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.
|
String name()
void put(K key, V value)
key - The key to set.value - The value to set.void put(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
key - The key to set.value - The value to setdoneHandler - An asynchronous handler to be called once complete.void get(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
key - The key to get.resultHandler - An asynchronous handler to be called with the result.void remove(K key)
key - The key to remove.void remove(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> doneHandler)
key - The key to remove.doneHandler - An asynchronous handler to be called once complete.void remove(K key, V value)
key - The key from which to remove the value.value - The value to remove.void remove(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> doneHandler)
key - The key from which to remove the value.value - The value to remove.doneHandler - An asynchronous handler to be called once complete.void containsKey(K key, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
key - The key to check.resultHandler - An asynchronous handler to be called with the result.void containsValue(V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
value - The value to check.resultHandler - An asynchronous handler to be called with the result.void containsEntry(K key, V value, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
key - The key to check.value - The value to check.resultHandler - An asynchronous handler to be called with the result.void keySet(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Set<K>>> resultHandler)
resultHandler - An asynchronous handler to be called with the key set once complete.void values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
resultHandler - An asynchronous handler to be called with the values once complete.void size(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Integer>> resultHandler)
resultHandler - An asynchronous handler to be called with the result.void isEmpty(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Boolean>> resultHandler)
resultHandler - An asynchronous handler to be called with the result indicating
whether the map is empty.void clear()
void clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
doneHandler - An asynchronous handler to be called once complete.Copyright © 2013-2014. All Rights Reserved.