Shared data provides:
Warning
In clustered mode, asynchronous maps/locks/counters rely on distributed data structures provided by the cluster manager. Beware that the latency relative to asynchronous maps/locks/counters operations can be much higher in clustered than in local mode.
| Modifier and Type | Method and Description |
|---|---|
| public <K, V> void | getAsyncMap(String
the name of the map name, Handler<AsyncResult<AsyncMap<K, V>>> the map will be returned asynchronously in this handler resultHandler)Get the |
| public <K, V> Future | getAsyncMap(String name)
Same as |
| public <K, V> void | getClusterWideMap(String
the name of the map name, Handler<AsyncResult<AsyncMap<K, V>>> the map will be returned asynchronously in this handler resultHandler)Get the cluster wide map with the specified name. |
| public <K, V> Future | getClusterWideMap(String name)
Same as |
| public void | getCounter(String
the name of the counter. name, Handler<AsyncResult<Counter>> the handler resultHandler)Get an asynchronous counter. |
| public Future | getCounter(String name)
Same as |
| public <K, V> void | getLocalAsyncMap(String
the name of the map name, Handler<AsyncResult<AsyncMap<K, V>>> the map will be returned asynchronously in this handler resultHandler)Get the |
| public <K, V> Future | getLocalAsyncMap(String name)
Same as |
| public void | getLocalCounter(String
the name of the counter. name, Handler<AsyncResult<Counter>> the handler resultHandler)Get an asynchronous local counter. |
| public Future | getLocalCounter(String name)
Same as |
| public void | getLocalLock(String
the name of the lock name, Handler<AsyncResult<Lock>> the handler resultHandler)Get an asynchronous local lock with the specified name. |
| public Future | getLocalLock(String name)
Same as |
| public void | getLocalLockWithTimeout(String
the name of the lock name, long the timeout in ms timeout, Handler<AsyncResult<Lock>> the handler resultHandler)Like |
| public Future | getLocalLockWithTimeout(String name, long timeout)
Same as |
| public <K, V> LocalMap | Returns: the mapthe name of the map name)Return a |
| public void | getLock(String
the name of the lock name, Handler<AsyncResult<Lock>> the handler resultHandler)Get an asynchronous lock with the specified name. |
| public Future | getLock(String name)
Same as |
| public void | getLockWithTimeout(String
the name of the lock name, long the timeout in ms timeout, Handler<AsyncResult<Lock>> the handler resultHandler)Like |
| public Future | getLockWithTimeout(String name, long timeout)
Same as |
| getAsyncMap | back to summary |
|---|---|
| public <K, V> void getAsyncMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Get the Warning In clustered mode, asynchronous shared maps rely on distributed data structures provided by the cluster manager. Beware that the latency relative to asynchronous shared maps operations can be much higher in clustered than in local mode.
| |
| getAsyncMap | back to summary |
|---|---|
| public <K, V> Future Same as | |
| getClusterWideMap | back to summary |
|---|---|
| public <K, V> void getClusterWideMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Get the cluster wide map with the specified name. The map is accessible to all nodes in the cluster and data put into the map from any node is visible to to any other node.
| |
| getClusterWideMap | back to summary |
|---|---|
| public <K, V> Future Same as | |
| getCounter | back to summary |
|---|---|
| public void getCounter(String name, Handler<AsyncResult<Counter>> resultHandler) Get an asynchronous counter. The counter will be passed to the handler.
| |
| getCounter | back to summary |
|---|---|
| public Future Same as | |
| getLocalAsyncMap | back to summary |
|---|---|
| public <K, V> void getLocalAsyncMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Get the When clustered, the map is NOT accessible to all nodes in the cluster. Only the instance which created the map can put and retrieve data from this map.
| |
| getLocalAsyncMap | back to summary |
|---|---|
| public <K, V> Future Same as | |
| getLocalCounter | back to summary |
|---|---|
| public void getLocalCounter(String name, Handler<AsyncResult<Counter>> resultHandler) Get an asynchronous local counter. The counter will be passed to the handler.
| |
| getLocalCounter | back to summary |
|---|---|
| public Future Same as | |
| getLocalLock | back to summary |
|---|---|
| public void getLocalLock(String name, Handler<AsyncResult<Lock>> resultHandler) Get an asynchronous local lock with the specified name. The lock will be passed to the handler when it is available. In general lock acquision is unordered, so that sequential attempts to acquire a lock, even from a single thread, can happen in non-sequential order.
| |
| getLocalLock | back to summary |
|---|---|
| public Future Same as | |
| getLocalLockWithTimeout | back to summary |
|---|---|
| public void getLocalLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler) Like In general lock acquision is unordered, so that sequential attempts to acquire a lock, even from a single thread, can happen in non-sequential order.
| |
| getLocalLockWithTimeout | back to summary |
|---|---|
| public Future Same as | |
| getLocalMap | back to summary |
|---|---|
| public <K, V> LocalMap Return a | |
| getLock | back to summary |
|---|---|
| public void getLock(String name, Handler<AsyncResult<Lock>> resultHandler) Get an asynchronous lock with the specified name. The lock will be passed to the handler when it is available. In general lock acquision is unordered, so that sequential attempts to acquire a lock, even from a single thread, can happen in non-sequential order.
| |
| getLock | back to summary |
|---|---|
| public Future Same as | |
| getLockWithTimeout | back to summary |
|---|---|
| public void getLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler) Like In general lock acquision is unordered, so that sequential attempts to acquire a lock, even from a single thread, can happen in non-sequential order.
| |
| getLockWithTimeout | back to summary |
|---|---|
| public Future Same as | |