Update

org.apache.pekko.cluster.ddata.Replicator.Update
See theUpdate companion class
object Update

Attributes

Companion
class
Source
Replicator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Update.type

Members list

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.

Attributes

Source
Replicator.scala