AllForOneStrategy Members

The AllForOneStrategy type exposes the following members.

Constructors


  Name Description
Public method AllForOneStrategy(Nullable<(Of <<'(Int32>)>>), Nullable<(Of <<'(TimeSpan>)>>), Func<(Of <<'(Exception, Directive>)>>))
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider` to all children when one fails, as opposed to [[Akka.Actor.AllForOneStrategy]] that applies it only to the child actor that failed.
Public method AllForOneStrategy(Func<(Of <<'(Exception, Directive>)>>))
Constructor that accepts only a decider and uses reasonable defaults for the other settings

Methods


  Name Description
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
Determines what to do with the child when the given exception occurs.
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.
(Inherited from SupervisorStrategy.)
Protected method LogFailure (Inherited from SupervisorStrategy.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method RestartChild (Inherited from SupervisorStrategy.)
Protected method ResumeChild (Inherited from SupervisorStrategy.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property Decider
Mapping from Exception to [[Akka.Actor.SupervisorStrategy.Directive]].
Public property MaxNumberOfRetries
The number of times a child actor is allowed to be restarted, negative value means no limit, if the limit is exceeded the child actor is stopped.
Public property WithinTimeRange
Duration of the time window for maxNrOfRetries, Duration.Inf means no window.