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

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public OneForOneStrategy(
	Nullable<int> maxNrOfRetries,
	Nullable<TimeSpan> withinTimeRange,
	Func<Exception, Directive> localOnlyDecider
)

Parameters

maxNrOfRetries
Type: System.Nullable<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.
withinTimeRange
Type: System.Nullable<TimeSpan>
duration of the time window for maxNrOfRetries, System.Threading.Timeout.InfiniteTimeSpan means no window.
localOnlyDecider
Type: System.Func<Exception, Directive>
mapping from Exception to Directive
See Also