object Update extends Serializable

Source
Replicator.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Update
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[A <: ReplicatedData](key: Key[A], initial: A, writeConsistency: WriteConsistency, request: Option[Any] = None)(modify: (A) ⇒ A): Update[A]

    Modify value of local Replicator and replicate with given writeConsistency.

    Modify value of local Replicator and replicate with given writeConsistency.

    The current value for the key is passed to the modify function. If there is no current data value for the key the initial value will be passed to the modify function.

    The optional request context is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to use ask or local correlation data structures.