SupervisorStrategy Methods

The SupervisorStrategy type exposes the following members.

Methods


  Name Description
Public method Static member 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`.
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Handle
Handles the specified child.
Public method 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.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)