Click or drag to resize
Akka.NETAllForOneStrategy Constructor (Int32, Int32, Func<Exception, Directive>, Boolean)
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider` to all children when one fails, as opposed to OneForOneStrategy that applies it only to the child actor that failed.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public AllForOneStrategy(
	int maxNrOfRetries,
	int withinTimeMilliseconds,
	Func<Exception, Directive> localOnlyDecider,
	bool loggingEnabled = true
)

Parameters

maxNrOfRetries
Type: System.Int32
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.
withinTimeMilliseconds
Type: System.Int32
duration in milliseconds of the time window for maxNrOfRetries, negative values means no window.
localOnlyDecider
Type: System.Func<Exception, Directive>
Mapping from an Exception to Directive
loggingEnabled (Optional)
Type: System.Boolean
If true failures will be logged
See Also