c

vertices.core

VertxSharedDataOps

implicit final class VertxSharedDataOps extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VertxSharedDataOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VertxSharedDataOps(target: SharedData)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. 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 parent io.vertx.core.Vertx instance is not clustered

  8. 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.

  9. 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

  10. 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.

  11. 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

  12. 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

  13. 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

  14. 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

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val target: SharedData
  17. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped