K - The map key type.V - The map value type.public class WrappedWatchableAsyncMap<K,V> extends Object implements WatchableAsyncMap<K,V>
| Constructor and Description |
|---|
WrappedWatchableAsyncMap(AsyncMap<K,V> map,
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 |
unwatch(K key,
org.vertx.java.core.Handler<MapEvent<K,V>> handler)
Stops watching a key for changes.
|
void |
unwatch(K key,
org.vertx.java.core.Handler<MapEvent<K,V>> handler,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Stops watching a key for changes.
|
void |
unwatch(K key,
MapEvent.Type event,
org.vertx.java.core.Handler<MapEvent<K,V>> handler)
Stops watching a key for changes.
|
void |
unwatch(K key,
MapEvent.Type event,
org.vertx.java.core.Handler<MapEvent<K,V>> handler,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Stops watching a key for changes.
|
void |
values(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Collection<V>>> resultHandler)
Gets a collection of values in the map.
|
void |
watch(K key,
org.vertx.java.core.Handler<MapEvent<K,V>> handler)
Watches a key for changes.
|
void |
watch(K key,
org.vertx.java.core.Handler<MapEvent<K,V>> handler,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Watches a key for changes.
|
void |
watch(K key,
MapEvent.Type event,
org.vertx.java.core.Handler<MapEvent<K,V>> handler)
Watches a key for changes.
|
void |
watch(K key,
MapEvent.Type event,
org.vertx.java.core.Handler<MapEvent<K,V>> handler,
org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
Watches a key for changes.
|
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()
AsyncMappublic void clear(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
AsyncMappublic void watch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
WatchableAsyncMapwatch in interface WatchableAsyncMap<K,V>key - The key to watch.handler - The handler to call when an event occurs.public void watch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
WatchableAsyncMapwatch in interface WatchableAsyncMap<K,V>key - The key to watch.handler - The handler to call when an event occurs.doneHandler - An asynchronous handler to be called once the key is being watched.public void watch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
WatchableAsyncMapwatch in interface WatchableAsyncMap<K,V>key - The key to watch.event - The event type to watch.handler - The handler to call when an event occurs.public void watch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
WatchableAsyncMapwatch in interface WatchableAsyncMap<K,V>key - The key to watch.event - The event type to watch.handler - The handler to call when an event occurs.doneHandler - An asynchronous handler to be called once the key is being watched.public void unwatch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
WatchableAsyncMapunwatch in interface WatchableAsyncMap<K,V>key - The key to unwatch.handler - The handler that was watching the key/event.public void unwatch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
WatchableAsyncMapunwatch in interface WatchableAsyncMap<K,V>key - The key to unwatch.handler - The handler that was watching the key/event.doneHandler - An asynchronous handler to be called once the key is no longer being watched.public void unwatch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
WatchableAsyncMapunwatch in interface WatchableAsyncMap<K,V>key - The key to unwatch.event - The event type to unwatch.handler - The handler that was watching the key/event.public void unwatch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler, org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<Void>> doneHandler)
WatchableAsyncMapunwatch in interface WatchableAsyncMap<K,V>key - The key to unwatch.event - The event type to unwatch.handler - The handler that was watching the key/event.doneHandler - An asynchronous handler to be called once the key is no longer being watched.Copyright © 2013-2014. All Rights Reserved.