SupervisorStrategy Methods
The SupervisorStrategy type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
DefaultDecider |
When supervisorStrategy is not specified for an actor this
[[Decider]] is used by default in the supervisor strategy.
The child will be stopped when [[Akka.Actor.ActorInitializationException]],
[[Akka.Actor.ActorKilledException]], or [[Akka.Actor.DeathPactException]] is
thrown. It will be restarted for other `Exception` types.
The error is escalated if it's a `Exception`, i.e. `Error`.
|
![]() |
Equals(System.Object) | (Inherited from Object.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Handle |
Handles the specified child.
|
![]() |
HandleFailure |
This is the main entry point: in case of a child’s failure, this method
must try to handle the failure by resuming, restarting or stopping the
child (and returning `true`), or it returns `false` to escalate the
failure, which will lead to this actor re-throwing the exception which
caused the failure. The exception will not be wrapped.
This method calls [[Akka.Actor.SupervisorStrategy#LogFailure]], which will
log the failure unless it is escalated. You can customize the logging by
setting [[Akka.Actor.SupervisorStrategy#LoggingEnabled]] to `false` and
do the logging inside the `decider` or override the `LogFailure` method.
|
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString |
Returns a string that represents the current object. (Inherited from Object.) |