object Update
- Companion:
- class
- Source:
- Replicator.scala
Value members
Concrete methods
def apply[A <: ReplicatedData](key: Key[A], initial: A, writeConsistency: WriteConsistency, request: Option[Any])(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.
- Source:
- Replicator.scala