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
Replicatorand replicate with givenwriteConsistency.Modify value of local
Replicatorand replicate with givenwriteConsistency.The current value for the
keyis passed to themodifyfunction. If there is no current data value for thekeytheinitialvalue will be passed to themodifyfunction.The optional
requestcontext is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to useaskor local correlation data structures.