akka.routing
Class RouterActor
java.lang.Object
akka.routing.RouterActor
- All Implemented Interfaces:
- Actor
- Direct Known Subclasses:
- ClusterRouterGroupActor, RouterPoolActor
public class RouterActor
- extends java.lang.Object
- implements Actor
INTERNAL API
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.actor.Actor |
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preStart, self, sender, supervisorStrategy, unhandled |
RouterActor
public RouterActor()
cell
public RoutedActorCell cell()
routingLogicController
public scala.Option<ActorRef> routingLogicController()
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
- Description copied from interface:
Actor
- This defines the initial actor behavior, it must return a partial function
with the actor logic.
- Specified by:
receive
in interface Actor
- Returns:
- (undocumented)
stopIfAllRouteesRemoved
public void stopIfAllRouteesRemoved()
preRestart
public void preRestart(java.lang.Throwable cause,
scala.Option<java.lang.Object> msg)
- Description copied from interface:
Actor
- User overridable callback: '''By default it disposes of all children and then calls
postStop()
.'''
- Specified by:
preRestart
in interface Actor
- Parameters:
cause
- 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.