vertx-lang-scala-docs_2.12 3.4.0 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package cli
  Definition Classes
    core
-  package datagram
  Definition Classes
    core
-  package dns
  Definition Classes
    core
-  package eventbus
  Definition Classes
    core
-  package file
  Definition Classes
    core
-  package http
  Definition Classes
    core
-  package metrics
  Definition Classes
    core
-  package net
  Definition Classes
    core
-  package parsetools
  Definition Classes
    core
-  package shareddata
  Definition Classes
    core
- AsyncMap
- Counter
- LocalMap
- Lock
- SharedData
-  package streams
  Definition Classes
    core

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.

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.

   The map only allows immutable keys and values in the map, OR certain mutable objects such as io.vertx.scala.core.buffer.Buffer instances which will be copied when they are added to the map.

   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.

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:

   - Cluster wide maps which can be accessed from any node of the cluster
   - Cluster wide locks which can be used to give exclusive access to resources across the cluster
   - Cluster wide counters used to maintain counts consistently across the cluster
   - Local maps for sharing data safely in the same Vert.x instance

   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