implicit final class VertxSharedDataOps extends AnyVal
- Alphabetic
- By Inheritance
- VertxSharedDataOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VertxSharedDataOps(target: SharedData)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getAsyncMapL[K, V](name: String): Task[AsyncMap[K, V]]
Get the
AsyncMap
with the specified name.Get the
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.
- name
the name of the map
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getClusterWideMapL[K, V](name: String): Task[AsyncMap[K, V]]
Get the cluster wide map with the specified name.
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.
- name
the name of the map
- Exceptions thrown
IllegalStateException
if the parentio.vertx.core.Vertx
instance is not clustered
- def getCounterL(name: String): Task[Counter]
Get an asynchronous counter.
Get an asynchronous counter. The counter will be passed to the handler.
- name
the name of the counter.
- def getLocalAsyncMapL[K, V](name: String): Task[AsyncMap[K, V]]
Get the
AsyncMap
with the specified name.Get the
AsyncMap
with the specified name.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.
- name
the name of the map
- def getLocalCounterL(name: String): Task[Counter]
Get an asynchronous local counter.
Get an asynchronous local counter. The counter will be passed to the handler.
- name
the name of the counter.
- def getLocalLockL(name: String): Task[Lock]
Get an asynchronous local lock with the specified name.
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.
- name
the name of the lock
- def getLocalLockWithTimeoutL(name: String, timeout: Long): Task[Lock]
Like
Handler)
but specifying a timeout.Like
Handler)
but specifying a timeout. If the lock is not obtained within the timeout a failure will be sent to the handler.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.
- name
the name of the lock
- timeout
the timeout in ms
- def getLockL(name: String): Task[Lock]
Get an asynchronous lock with the specified name.
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.
- name
the name of the lock
- def getLockWithTimeoutL(name: String, timeout: Long): Task[Lock]
Like
Handler)
but specifying a timeout.Like
Handler)
but specifying a timeout. If the lock is not obtained within the timeout a failure will be sent to the handler.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.
- name
the name of the lock
- timeout
the timeout in ms
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val target: SharedData
- def toString(): String
- Definition Classes
- Any