| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ClusterManager | |
| private static final long | |
| private final LocalAsyncLocks | |
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final ConcurrentMap | |
| private final VertxInternal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| 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)Implements io. Get the |
| public <K, V> Future | getAsyncMap(String name)
Implements io. 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)Implements io. Get the cluster wide map with the specified name. |
| public <K, V> Future | getClusterWideMap(String name)
Implements io. Same as |
| public Future | getCounter(String name)
Implements io. Same as |
| public void | getCounter(String
the name of the counter. name, Handler<AsyncResult<Counter>> the handler resultHandler)Implements io. Get an asynchronous counter. |
| 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)Implements io. Get the |
| public <K, V> Future | getLocalAsyncMap(String name)
Implements io. Same as |
| public void | getLocalCounter(String
the name of the counter. name, Handler<AsyncResult<Counter>> the handler resultHandler)Implements io. Get an asynchronous local counter. |
| public Future | getLocalCounter(String name)
Implements io. Same as |
| public void | getLocalLock(String
the name of the lock name, Handler<AsyncResult<Lock>> the handler resultHandler)Implements io. Get an asynchronous local lock with the specified name. |
| public Future | getLocalLock(String name)
Implements io. Same as |
| public void | getLocalLockWithTimeout(String
the name of the lock name, long the timeout in ms timeout, Handler<AsyncResult<Lock>> the handler resultHandler)Implements io. Like |
| public Future | getLocalLockWithTimeout(String name, long timeout)
Implements io. Same as |
| public <K, V> LocalMap | getLocalMap(String
the name of the map name)Implements io. Return a |
| public void | getLock(String
the name of the lock name, Handler<AsyncResult<Lock>> the handler resultHandler)Implements io. Get an asynchronous lock with the specified name. |
| public Future | getLock(String name)
Implements io. Same as |
| public void | getLockWithTimeout(String
the name of the lock name, long the timeout in ms timeout, Handler<AsyncResult<Lock>> the handler resultHandler)Implements io. Like |
| public Future | getLockWithTimeout(String name, long timeout)
Implements io. Same as |
| clusterManager | back to summary |
|---|---|
| private final ClusterManager clusterManager | |
| DEFAULT_LOCK_TIMEOUT | back to summary |
|---|---|
| private static final long DEFAULT_LOCK_TIMEOUT | |
| localAsyncLocks | back to summary |
|---|---|
| private final LocalAsyncLocks localAsyncLocks | |
| localAsyncMaps | back to summary |
|---|---|
| private final ConcurrentMap<String, LocalAsyncMapImpl<?, ?>> localAsyncMaps | |
| localCounters | back to summary |
|---|---|
| private final ConcurrentMap<String, Counter> localCounters | |
| localMaps | back to summary |
|---|---|
| private final ConcurrentMap<String, LocalMap<?, ?>> localMaps | |
| vertx | back to summary |
|---|---|
| private final VertxInternal vertx | |
| SharedDataImpl | back to summary |
|---|---|
| public SharedDataImpl(VertxInternal vertx, ClusterManager clusterManager) | |
| checkType | back to summary |
|---|---|
| private static void checkType(Object obj) | |
| getAsyncMap | back to summary |
|---|---|
| public <K, V> void getAsyncMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getClusterWideMap | back to summary |
|---|---|
| public <K, V> void getClusterWideMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getCounter | back to summary |
|---|---|
| public Future Implements io. Doc from io. Same as
| |
| getCounter | back to summary |
|---|---|
| public void getCounter(String name, Handler<AsyncResult<Counter>> resultHandler) Implements io. Doc from io. Get an asynchronous counter. The counter will be passed to the handler.
| |
| getLocalAsyncMap | back to summary |
|---|---|
| public <K, V> void getLocalAsyncMap(String name, Handler<AsyncResult<AsyncMap<K, V>>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getLocalCounter | back to summary |
|---|---|
| public void getLocalCounter(String name, Handler<AsyncResult<Counter>> resultHandler) Implements io. Doc from io. Get an asynchronous local counter. The counter will be passed to the handler.
| |
| getLocalCounter | back to summary |
|---|---|
| public Future Implements io. Doc from io. Same as
| |
| getLocalLock | back to summary |
|---|---|
| public void getLocalLock(String name, Handler<AsyncResult<Lock>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getLocalLockWithTimeout | back to summary |
|---|---|
| public void getLocalLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getLocalMap | back to summary |
|---|---|
| public <K, V> LocalMap Implements io. Return a
| |
| getLock | back to summary |
|---|---|
| public void getLock(String name, Handler<AsyncResult<Lock>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |
| getLockWithTimeout | back to summary |
|---|---|
| public void getLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler) Implements io. Doc from io. 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 Implements io. Doc from io. Same as
| |