Package akka.cluster.ddata.typed.javadsl
Class Replicator
- java.lang.Object
-
- akka.cluster.ddata.typed.javadsl.Replicator
-
public class Replicator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Replicator.Changed<A extends ReplicatedData>
The data value is retrieved withReplicator.Changed.get(akka.cluster.ddata.Key<T>)
using the typed key.static class
Replicator.Changed$
static interface
Replicator.Command
static class
Replicator.DataDeleted<A extends ReplicatedData>
static class
Replicator.DataDeleted$
static class
Replicator.Delete<A extends ReplicatedData>
Send this message to the localReplicator
to delete a data value for the givenkey
.static class
Replicator.Delete$
static class
Replicator.Deleted<A extends ReplicatedData>
static class
Replicator.Deleted$
static class
Replicator.DeleteFailure<A extends ReplicatedData>
static class
Replicator.DeleteFailure$
static interface
Replicator.DeleteResponse<A extends ReplicatedData>
static class
Replicator.DeleteSuccess<A extends ReplicatedData>
static class
Replicator.DeleteSuccess$
static class
Replicator.Expired<A extends ReplicatedData>
static class
Replicator.Expired$
static class
Replicator.FlushChanges$
INTERNAL API Obtain the instance of this class with theflushChanges()
method.static class
Replicator.Get<A extends ReplicatedData>
Send this message to the localReplicator
to retrieve a data value for the givenkey
.static class
Replicator.Get$
static class
Replicator.GetDataDeleted<A extends ReplicatedData>
TheReplicator.Get
request couldn't be performed because the entry has been deleted.static class
Replicator.GetDataDeleted$
static class
Replicator.GetFailure<A extends ReplicatedData>
TheReplicator.Get
request could not be fulfill according to the givenconsistency level
andtimeout
.static class
Replicator.GetFailure$
static class
Replicator.GetReplicaCount
Get current number of replicas, including the local replica.static class
Replicator.GetReplicaCount$
static class
Replicator.GetResponse<A extends ReplicatedData>
static class
Replicator.GetSuccess<A extends ReplicatedData>
Reply fromGet
.static class
Replicator.GetSuccess$
static class
Replicator.ModifyFailure<A extends ReplicatedData>
If themodify
function of theReplicator.Update
throws an exception the reply message will be thisModifyFailure
message.static class
Replicator.ModifyFailure$
static class
Replicator.NotFound<A extends ReplicatedData>
static class
Replicator.NotFound$
static class
Replicator.ReadAll
static class
Replicator.ReadAll$
static interface
Replicator.ReadConsistency
static class
Replicator.ReadFrom
static class
Replicator.ReadFrom$
static class
Replicator.ReadLocal$
static class
Replicator.ReadMajority
static class
Replicator.ReadMajority$
static class
Replicator.ReplicaCount
Current number of replicas.static class
Replicator.ReplicaCount$
static class
Replicator.StoreFailure<A extends ReplicatedData>
The local store or direct replication of theReplicator.Update
could not be fulfill according to the givenconsistency level
due to durable store errors.static class
Replicator.StoreFailure$
static class
Replicator.Subscribe<A extends ReplicatedData>
Register a subscriber that will be notified with aReplicator.Changed
message when the value of the givenkey
is changed.static class
Replicator.Subscribe$
static interface
Replicator.SubscribeResponse<A extends ReplicatedData>
static class
Replicator.Unsubscribe<A extends ReplicatedData>
Unregister a subscriber.static class
Replicator.Unsubscribe$
static class
Replicator.Update<A extends ReplicatedData>
static class
Replicator.Update$
static class
Replicator.UpdateDataDeleted<A extends ReplicatedData>
TheReplicator.Update
couldn't be performed because the entry has been deleted.static class
Replicator.UpdateDataDeleted$
static class
Replicator.UpdateFailure<A extends ReplicatedData>
static class
Replicator.UpdateResponse<A extends ReplicatedData>
static class
Replicator.UpdateSuccess<A extends ReplicatedData>
static class
Replicator.UpdateSuccess$
static class
Replicator.UpdateTimeout<A extends ReplicatedData>
The direct replication of theReplicator.Update
could not be fulfill according to the givenconsistency level
andtimeout
.static class
Replicator.UpdateTimeout$
static class
Replicator.WriteAll
static class
Replicator.WriteAll$
static interface
Replicator.WriteConsistency
static class
Replicator.WriteLocal$
static class
Replicator.WriteMajority
static class
Replicator.WriteMajority$
static class
Replicator.WriteTo
static class
Replicator.WriteTo$
-
Constructor Summary
Constructors Constructor Description Replicator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Behavior<Replicator.Command>
behavior(ReplicatorSettings settings)
TheBehavior
for theReplicator
actor.static Behavior<Replicator.Command>
behavior(ReplicatorSettings settings, ActorRef underlyingReplicator)
TheBehavior
for theReplicator
actor.static Replicator.Command
flushChanges()
TheFlushChanges
instance.static Replicator.ReadConsistency
readLocal()
TheReadLocal
instancestatic Replicator.WriteConsistency
writeLocal()
TheWriteLocal
instance
-
-
-
Method Detail
-
behavior
public static Behavior<Replicator.Command> behavior(ReplicatorSettings settings)
TheBehavior
for theReplicator
actor.
-
behavior
public static Behavior<Replicator.Command> behavior(ReplicatorSettings settings, ActorRef underlyingReplicator)
-
readLocal
public static Replicator.ReadConsistency readLocal()
TheReadLocal
instance
-
writeLocal
public static Replicator.WriteConsistency writeLocal()
TheWriteLocal
instance
-
flushChanges
public static Replicator.Command flushChanges()
TheFlushChanges
instance. Notify subscribers of changes now, otherwise they will be notified periodically with the configurednotify-subscribers-interval
.
-
-