ActorBasePreRestart Method |
User overridable callback: '''By default it disposes of all children and then calls `postStop()`.'''
Is called on a crashed Actor right BEFORE it is restarted to allow clean
up of resources before Actor is terminated.
Namespace: Akka.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxprotected virtual void PreRestart(
Exception reason,
Object message
)
Protected Overridable Sub PreRestart (
reason As Exception,
message As Object
)
protected:
virtual void PreRestart(
Exception^ reason,
Object^ message
)
abstract PreRestart :
reason : Exception *
message : Object -> unit
override PreRestart :
reason : Exception *
message : Object -> unit
Parameters
- reason
- Type: SystemException
the Exception that caused the restart to happen. - message
- Type: SystemObject
optionally the current message the actor processed when failing, if applicable.
See Also