Package org.apache.pekko.cluster.ddata
Class Replicator.Get<A extends ReplicatedData>
java.lang.Object
org.apache.pekko.cluster.ddata.Replicator.Get<A>
- All Implemented Interfaces:
Serializable,Replicator.Command<A>,Replicator.ReplicatorMessage,scala.Equals,scala.Product
- Enclosing class:
- Replicator
public static final class Replicator.Get<A extends ReplicatedData>
extends Object
implements Replicator.Command<A>, Replicator.ReplicatorMessage, scala.Product, Serializable
Send this message to the local
Replicator to retrieve a data value for the
given key. The Replicator will reply with one of the Replicator.GetResponse messages.
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 maintain local correlation data structures.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGet(Key<A> key, Replicator.ReadConsistency consistency) Java API:Getvalue from localReplicator, i.e.Java API:Getvalue from localReplicator, i.e.Get(Key<A> key, Replicator.ReadConsistency consistency, scala.Option<Object> request) -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends ReplicatedData>
Replicator.Get<A>copy(Key<A> key, Replicator.ReadConsistency consistency, scala.Option<Object> request) <A extends ReplicatedData>
Key<A><A extends ReplicatedData>
Replicator.ReadConsistency<A extends ReplicatedData>
scala.Option<Object>booleaninthashCode()key()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.Option<Object>request()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Get
-
Get
Java API:Getvalue from localReplicator, i.e.ReadLocalconsistency. -
Get
Java API:Getvalue from localReplicator, i.e.ReadLocalconsistency.
-
-
Method Details
-
key
- Specified by:
keyin interfaceReplicator.Command<A extends ReplicatedData>
-
consistency
-
request
-
copy
public <A extends ReplicatedData> Replicator.Get<A> copy(Key<A> key, Replicator.ReadConsistency consistency, scala.Option<Object> request) -
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
-