Class Replicator.Update<A extends ReplicatedData>
java.lang.Object
org.apache.pekko.cluster.ddata.typed.javadsl.Replicator.Update<A>
- All Implemented Interfaces:
Serializable,Replicator.Command,Replicator.Command,scala.Equals,scala.Product
- Enclosing class:
- Replicator
public static final class Replicator.Update<A extends ReplicatedData>
extends Object
implements Replicator.Command, scala.Product, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends ReplicatedData>
Replicator.Update<A>copy(Key<A> key, Replicator.WriteConsistency writeConsistency, ActorRef<Replicator.UpdateResponse<A>> replyTo, scala.Function1<scala.Option<A>, A> modify) <A extends ReplicatedData>
Key<A><A extends ReplicatedData>
Replicator.WriteConsistency<A extends ReplicatedData>
ActorRef<Replicator.UpdateResponse<A>>booleaninthashCode()key()modify()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>replyTo()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Update
public Update(Key<A> key, A initial, Replicator.WriteConsistency writeConsistency, ActorRef<Replicator.UpdateResponse<A>> replyTo, Function<A, A> modify) Modify value of localReplicatorand 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.
-
-
Method Details
-
key
-
writeConsistency
-
replyTo
-
modify
-
copy
public <A extends ReplicatedData> Replicator.Update<A> copy(Key<A> key, Replicator.WriteConsistency writeConsistency, ActorRef<Replicator.UpdateResponse<A>> replyTo, scala.Function1<scala.Option<A>, A> modify) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-