public static class ShardCoordinator.RebalanceWorker extends java.lang.Object implements Actor
BeginHandOff to all ShardRegion actors followed by
HandOff to the ShardRegion responsible for the shard.
When the handoff is completed it sends akka.cluster.sharding.RebalanceDone to its
parent ShardCoordinator. If the process takes longer than the
handOffTimeout it also sends akka.cluster.sharding.RebalanceDone.Actor.emptyBehavior$, Actor.ignoringBehavior$| Constructor and Description |
|---|
RebalanceWorker(java.lang.String shard,
ActorRef from,
scala.concurrent.duration.FiniteDuration handOffTimeout,
scala.collection.immutable.Set<ActorRef> regions) |
| Modifier and Type | Method and Description |
|---|---|
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
void |
done(boolean ok) |
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.
|
scala.collection.immutable.Set<ActorRef> |
remaining() |
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
stoppingShard() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandledpublic ActorContext context()
Actorforward.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext is the Scala API. getContext returns a
UntypedActorContext, which is the Java API of the actor
context.
public final ActorRef self()
Actorself ! message
public scala.collection.immutable.Set<ActorRef> remaining()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actorpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> stoppingShard()
public void done(boolean ok)