K - The map key type.V - The map value type.public interface WatchableAsyncMap<K,V> extends AsyncMap<K,V>
This is an extension of the AsyncMap interface that supports
map key events. Types that implement this interface will trigger
event handlers when data changes in the map. Note that events can
be received from anywhere in the cluster, so the async map events
system is distributed.
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
void watch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
key - The key to watch.handler - The handler to call when an event occurs.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)
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.void watch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
key - The key to watch.event - The event type to watch.handler - The handler to call when an event occurs.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)
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.void unwatch(K key, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
key - The key to unwatch.handler - The handler that was watching the key/event.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)
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.void unwatch(K key, MapEvent.Type event, org.vertx.java.core.Handler<MapEvent<K,V>> handler)
key - The key to unwatch.event - The event type to unwatch.handler - The handler that was watching the key/event.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)
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.