Packages

p

io.vertx.scala.core

shareddata

package shareddata

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class AsyncMap[K, V] extends AnyRef

    An asynchronous map.

    An asynchronous map.

    io.vertx.scala.core.shareddata.AsyncMap does not allow null to be used as a key or value.

  2. class Counter extends AnyRef

    An asynchronous counter that can be used to across the cluster to maintain a consistent count.

  3. class LocalMap[K, V] extends AnyRef

    Local maps can be used to share data safely in a single Vert.x instance.

    Local maps can be used to share data safely in a single Vert.x instance.

    By default the map allows immutable keys and values. Custom keys and values should implement io.vertx.scala.core.shareddata.Shareable interface. The map returns their copies.

    This ensures there is no shared access to mutable state from different threads (e.g. different event loops) in the Vert.x instance, and means you don't have to protect access to that state using synchronization or locks.

    Since the version 3.4, this class extends the interface. However some methods are only accessible in Java.

  4. class Lock extends AnyRef

    An asynchronous exclusive lock which can be obtained from any node in the cluster.

    An asynchronous exclusive lock which can be obtained from any node in the cluster.

    When the lock is obtained, no-one else in the cluster can obtain the lock with the same name until the lock is released.

  5. class SharedData extends AnyRef

    Shared data allows you to share data safely between different parts of your application in a safe way.

    Shared data allows you to share data safely between different parts of your application in a safe way.

    Shared data provides:

    • synchronous shared maps (local)
    • asynchronous maps (local or cluster-wide)
    • asynchronous locks (local or cluster-wide)
    • asynchronous counters (local or cluster-wide)

    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.

Value Members

  1. object AsyncMap
  2. object Counter
  3. object LocalMap
  4. object Lock
  5. object SharedData

Ungrouped