The data value is retrieved with #get using the typed key.
The data value is retrieved with #get using the typed key.
Send this message to the local Replicator
to delete a data value for the
given key
.
Send this message to the local Replicator
to delete a data value for the
given key
. The Replicator
will reply with one of the DeleteResponse 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.
Send this message to the local Replicator
to retrieve a data value for the
given key
.
Send this message to the local Replicator
to retrieve a data value for the
given key
. The Replicator
will reply with one of the 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.
The Get request could not be fulfill according to the given consistency level and timeout.
Reply from Get
.
Reply from Get
. The data value is retrieved with #get using the typed key.
If the modify
function of the Update throws an exception the reply message
will be this ModifyFailure
message.
If the modify
function of the Update throws an exception the reply message
will be this ModifyFailure
message. The original exception is included as cause
.
Current number of replicas.
Current number of replicas. Reply to GetReplicaCount
.
Marker trait for remote messages serialized by akka.cluster.ddata.protobuf.ReplicatorMessageSerializer.
The local store or direct replication of the Update could not be fulfill according to the given consistency level due to durable store errors.
The local store or direct replication of the Update could not be fulfill according to the given consistency level due to durable store errors. This is only used for entries that have been configured to be durable.
The Update
was still performed in memory locally and possibly replicated to some nodes,
but it might not have been written to durable storage.
It will eventually be disseminated to other replicas, unless the local replica
crashes before it has been able to communicate with other replicas.
Register a subscriber that will be notified with a Changed message
when the value of the given key
is changed.
Register a subscriber that will be notified with a Changed message
when the value of the given key
is changed. Current value is also
sent as a Changed message to a new subscriber.
Subscribers will be notified periodically with the configured notify-subscribers-interval
,
and it is also possible to send an explicit FlushChanges
message to
the Replicator
to notify the subscribers immediately.
The subscriber will automatically be unregistered if it is terminated.
If the key is deleted the subscriber is notified with a Deleted message.
Unregister a subscriber.
Unregister a subscriber.
Send this message to the local Replicator
to update a data value for the
given key
.
Send this message to the local Replicator
to update a data value for the
given key
. The Replicator
will reply with one of the UpdateResponse messages.
Note that the companion object provides apply
functions for convenient
construction of this message.
The current data value for the key
is passed as parameter to the modify
function.
It is None
if there is no value for the key
, and otherwise Some(data)
. The function
is supposed to return the new value of the data, which will then be replicated according to
the given writeConsistency
.
The modify
function is called by the Replicator
actor and must therefore be a pure
function that only uses the data parameter and stable fields from enclosing scope. It must
for example not access sender()
reference of an enclosing actor.
The direct replication of the Update could not be fulfill according to the given consistency level and timeout.
The direct replication of the Update could not be fulfill according to the given consistency level and timeout.
The Update
was still performed locally and possibly replicated to some nodes.
It will eventually be disseminated to other replicas, unless the local replica
crashes before it has been able to communicate with other replicas.
Notify subscribers of changes now, otherwise they will be notified periodically
with the configured notify-subscribers-interval
.
Get current number of replicas, including the local replica.
Get current number of replicas, including the local replica. Will reply to sender with ReplicaCount.
Java API: The FlushChanges
instance
Java API: The GetReplicaCount
instance
Factory method for the akka.actor.Props of the Replicator actor.
Java API: The ReadLocal
instance
Java API: The WriteLocal
instance