public static class Replicator.Update$
extends java.lang.Object
implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static Replicator.Update$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Update$() |
Modifier and Type | Method and Description |
---|---|
<A extends ReplicatedData> |
apply(Key<A> key,
A initial,
Replicator.WriteConsistency writeConsistency,
scala.Option<java.lang.Object> request,
scala.Function1<A,A> modify)
Modify value of local
Replicator and replicate with given writeConsistency . |
public static final Replicator.Update$ MODULE$
public <A extends ReplicatedData> Replicator.Update<A> apply(Key<A> key, A initial, Replicator.WriteConsistency writeConsistency, scala.Option<java.lang.Object> request, scala.Function1<A,A> modify)
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.
key
- (undocumented)initial
- (undocumented)writeConsistency
- (undocumented)request
- (undocumented)modify
- (undocumented)