open class SharedData
Shared data allows you to share data safely between different parts of your application in a safe way.
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.
Please see the documentation for more information. NOTE: This class has been automatically generated from the io.vertx.core.shareddata.SharedData non RX-ified interface using Vert.x codegen.
SharedData(: SharedData) |
static val __TYPE_ARG: TypeArg<SharedData> |
open fun equals(: Any?): Boolean |
|
open fun <K : Any, V : Any> getAsyncMap(: String, : Handler<AsyncResult<AsyncMap<K, V>>>): Unit
Get the io.vertx.reactivex.core.shareddata.AsyncMap with the specified name. When clustered, 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. 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. |
|
open fun <K : Any, V : Any> getClusterWideMap(: String, : Handler<AsyncResult<AsyncMap<K, V>>>): Unit
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. |
|
open fun getCounter(: String, : Handler<AsyncResult<Counter>>): Unit
Get an asynchronous counter. The counter will be passed to the handler. |
|
open fun getDelegate(): SharedData |
|
open fun <K : Any, V : Any> getLocalMap(: String): LocalMap<K, V>
Return a |
|
open fun getLock(: String, : Handler<AsyncResult<Lock>>): Unit
Get an asynchronous lock with the specified name. The lock will be passed to the handler when it is available. |
|
open fun getLockWithTimeout(: String, : Long, : Handler<AsyncResult<Lock>>): Unit
Like |
|
open fun hashCode(): Int |
|
open static fun newInstance(: SharedData): SharedData |
|
open fun <K : Any, V : Any> rxGetAsyncMap(: String): Single<AsyncMap<K, V>>
Get the io.vertx.reactivex.core.shareddata.AsyncMap with the specified name. When clustered, 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. 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. |
|
open fun <K : Any, V : Any> rxGetClusterWideMap(: String): Single<AsyncMap<K, V>>
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. |
|
open fun rxGetCounter(: String): Single<Counter>
Get an asynchronous counter. The counter will be passed to the handler. |
|
open fun rxGetLock(: String): Single<Lock>
Get an asynchronous lock with the specified name. The lock will be passed to the handler when it is available. |
|
open fun rxGetLockWithTimeout(: String, : Long): Single<Lock>
Like |
|
open fun toString(): String |