public class WriteAggregator extends ReadWriteAggregator
ReadWriteAggregator.SendToSecondary$
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
WriteAggregator(Key<ReplicatedData> key,
akka.cluster.ddata.Replicator.Internal.DataEnvelope envelope,
Replicator.WriteConsistency consistency,
scala.Option<java.lang.Object> req,
scala.collection.immutable.Set<Address> nodes,
ActorRef replyTo,
boolean durable) |
Modifier and Type | Method and Description |
---|---|
protected static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
static ActorContext |
context() |
int |
doneWhenRemainingSize() |
boolean |
gotLocalStoreReply() |
scala.collection.immutable.Set<Address> |
gotWriteNackFrom() |
boolean |
isDone() |
scala.collection.immutable.Set<Address> |
nodes() |
boolean |
notEnoughNodes() |
static void |
postRestart(java.lang.Throwable reason) |
static void |
postStop() |
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
void |
preStart()
User overridable callback.
|
static scala.collection.immutable.Iterable<Address> |
primaryNodes() |
static Props |
props(Key<ReplicatedData> key,
akka.cluster.ddata.Replicator.Internal.DataEnvelope envelope,
Replicator.WriteConsistency consistency,
scala.Option<java.lang.Object> req,
scala.collection.immutable.Set<Address> nodes,
ActorRef replyTo,
boolean durable) |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
static void |
remaining_$eq(scala.collection.immutable.Set<Address> x$1) |
static scala.collection.immutable.Set<Address> |
remaining() |
static ActorSelection |
replica(Address address) |
void |
reply(boolean isTimeout) |
static scala.collection.immutable.Iterable<Address> |
secondaryNodes() |
static ActorRef |
self() |
static ActorRef |
sender() |
Address |
senderAddress() |
static void |
sendToSecondarySchedule_$eq(Cancellable x$1) |
static Cancellable |
sendToSecondarySchedule() |
static SupervisorStrategy |
supervisorStrategy() |
scala.concurrent.duration.FiniteDuration |
timeout() |
static void |
timeoutSchedule_$eq(Cancellable x$1) |
static Cancellable |
timeoutSchedule() |
static void |
unhandled(java.lang.Object message) |
akka.cluster.ddata.Replicator.Internal.Write |
writeMsg() |
context, MaxSecondaryNodes, postStop, primaryNodes, remaining, replica, secondaryNodes, self, sendToSecondarySchedule, timeoutSchedule
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, preRestart, sender, supervisorStrategy, unhandled
public WriteAggregator(Key<ReplicatedData> key, akka.cluster.ddata.Replicator.Internal.DataEnvelope envelope, Replicator.WriteConsistency consistency, scala.Option<java.lang.Object> req, scala.collection.immutable.Set<Address> nodes, ActorRef replyTo, boolean durable)
public static Props props(Key<ReplicatedData> key, akka.cluster.ddata.Replicator.Internal.DataEnvelope envelope, Replicator.WriteConsistency consistency, scala.Option<java.lang.Object> req, scala.collection.immutable.Set<Address> nodes, ActorRef replyTo, boolean durable)
public static final ActorRef sender()
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPostStop()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
public static SupervisorStrategy supervisorStrategy()
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static void postRestart(java.lang.Throwable reason) throws java.lang.Exception
java.lang.Exception
public static void unhandled(java.lang.Object message)
public static Cancellable sendToSecondarySchedule()
public static void sendToSecondarySchedule_$eq(Cancellable x$1)
public static Cancellable timeoutSchedule()
public static void timeoutSchedule_$eq(Cancellable x$1)
public static scala.collection.immutable.Set<Address> remaining()
public static void remaining_$eq(scala.collection.immutable.Set<Address> x$1)
public static scala.collection.immutable.Iterable<Address> primaryNodes()
public static scala.collection.immutable.Iterable<Address> secondaryNodes()
public static void postStop()
public static ActorSelection replica(Address address)
public static ActorContext context()
public static final ActorRef self()
protected static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected static final void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public scala.collection.immutable.Set<Address> nodes()
nodes
in class ReadWriteAggregator
public scala.concurrent.duration.FiniteDuration timeout()
timeout
in class ReadWriteAggregator
public int doneWhenRemainingSize()
doneWhenRemainingSize
in class ReadWriteAggregator
public akka.cluster.ddata.Replicator.Internal.Write writeMsg()
public boolean gotLocalStoreReply()
public scala.collection.immutable.Set<Address> gotWriteNackFrom()
public void preStart()
Actor
preStart
in interface Actor
preStart
in class ReadWriteAggregator
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
receive
in interface Actor
receive
in class ReadWriteAggregator
public Address senderAddress()
public boolean isDone()
public boolean notEnoughNodes()
public void reply(boolean isTimeout)