public class RouterActor extends java.lang.Object implements Actor
Actor.emptyBehavior$| Constructor and Description |
|---|
RouterActor() |
| Modifier and Type | Method and Description |
|---|---|
RoutedActorCell |
cell() |
void |
preRestart(java.lang.Throwable cause,
scala.Option<java.lang.Object> msg)
User overridable callback: '''By default it disposes of all children and then calls
postStop().''' |
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.Option<ActorRef> |
routingLogicController() |
void |
stopIfAllRouteesRemoved() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preStart, self, sender, supervisorStrategy, unhandledpublic RoutedActorCell cell()
public scala.Option<ActorRef> routingLogicController()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actorpublic void stopIfAllRouteesRemoved()
public void preRestart(java.lang.Throwable cause,
scala.Option<java.lang.Object> msg)
ActorpostStop().'''preRestart in interface Actorcause - the Throwable that caused the restart to happenmsg - optionally the current message the actor processed when failing, if applicable
Is called on a crashed Actor right BEFORE it is restarted to allow clean
up of resources before Actor is terminated.