public interface SharedData
Shared data provides:
Please see the documentation for more information.
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
getClusterWideMap(String name,
Handler<AsyncResult<AsyncMap<K,V>>> resultHandler)
Get the cluster wide map with the specified name.
|
void |
getCounter(String name,
Handler<AsyncResult<Counter>> resultHandler)
Get a cluster wide counter.
|
<K,V> LocalMap<K,V> |
getLocalMap(String name)
Return a
LocalMap with the specific name. |
void |
getLock(String name,
Handler<AsyncResult<Lock>> resultHandler)
Get a cluster wide lock with the specified name.
|
void |
getLockWithTimeout(String name,
long timeout,
Handler<AsyncResult<Lock>> resultHandler)
Like
getLock(String, Handler) but specifying a timeout. |
<K,V> void getClusterWideMap(String name, Handler<AsyncResult<AsyncMap<K,V>>> resultHandler)
name - the name of the mapresultHandler - the map will be returned asynchronously in this handlervoid getLock(String name, Handler<AsyncResult<Lock>> resultHandler)
name - the name of the lockresultHandler - the handlervoid getLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler)
getLock(String, Handler) but specifying a timeout. If the lock is not obtained within the timeout
a failure will be sent to the handlername - the name of the locktimeout - the timeout in msresultHandler - the handlervoid getCounter(String name, Handler<AsyncResult<Counter>> resultHandler)
name - the name of the counter.resultHandler - the handlerCopyright © 2015. All rights reserved.