public static final class Replicator.Get<A extends ReplicatedData> extends java.lang.Object implements Replicator.Command<A>, Replicator.ReplicatorMessage, scala.Product, scala.Serializable
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.
Constructor and Description |
---|
Get(Key<A> key,
Replicator.ReadConsistency consistency)
Java API:
Get value from local Replicator , i.e. |
Get(Key<A> key,
Replicator.ReadConsistency consistency,
scala.Option<java.lang.Object> request) |
Get(Key<A> key,
Replicator.ReadConsistency consistency,
java.util.Optional<java.lang.Object> request)
Java API:
Get value from local Replicator , i.e. |
Modifier and Type | Method and Description |
---|---|
Replicator.ReadConsistency |
consistency() |
Key<A> |
key() |
scala.Option<java.lang.Object> |
request() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Get(Key<A> key, Replicator.ReadConsistency consistency, scala.Option<java.lang.Object> request)
public Get(Key<A> key, Replicator.ReadConsistency consistency)
Get
value from local Replicator
, i.e. ReadLocal
consistency.key
- (undocumented)consistency
- (undocumented)public Get(Key<A> key, Replicator.ReadConsistency consistency, java.util.Optional<java.lang.Object> request)
Get
value from local Replicator
, i.e. ReadLocal
consistency.key
- (undocumented)consistency
- (undocumented)request
- (undocumented)public Key<A> key()
key
in interface Replicator.Command<A extends ReplicatedData>
public Replicator.ReadConsistency consistency()
public scala.Option<java.lang.Object> request()