public static interface TypedActor.PreRestart
Modifier and Type | Method and Description |
---|---|
void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
User overridable callback: '''By default it disposes of all children and then calls
postStop() .''' |
void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
postStop()
.'''reason
- the Throwable that caused the restart to happenmessage
- 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.
By default it terminates all children and calls postStop()