object Update extends Serializable
- Source
- Replicator.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Update
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
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 givenwriteConsistency
.Modify value of local
Replicator
and replicate with givenwriteConsistency
.The current value for the
key
is passed to themodify
function. If there is no current data value for thekey
theinitial
value will be passed to themodify
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 useask
or local correlation data structures.