Click or drag to resize
Akka.NETStrategy.OneForOne Method (FSharpExpr<FSharpFunc<Exception, Directive>>, FSharpOption<Int32>, FSharpOption<TimeSpan>)
Returns a supervisor strategy appliable only to child actor which faulted during execution.

Namespace:  Akka.FSharp
Assembly:  Akka.FSharp (in Akka.FSharp.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public static SupervisorStrategy OneForOne(
	FSharpExpr<FSharpFunc<Exception, Directive>> decider,
	FSharpOption<int> retries,
	FSharpOption<TimeSpan> timeout
)

Parameters

decider
Type: Microsoft.FSharp.Quotations.FSharpExpr<FSharpFunc<Exception, Directive>>
Used to determine a actor behavior response depending on exception occurred.
retries
Type: Microsoft.FSharp.Core.FSharpOption<Int32>
Defines a number of times, an actor could be restarted. If it's a negative value, there is not limit.
timeout
Type: Microsoft.FSharp.Core.FSharpOption<TimeSpan>
Defines time window for number of retries to occur.

Return Value

Type: SupervisorStrategy

[Missing <returns> documentation for "M:Akka.FSharp.Strategy.OneForOne(Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{System.Exception,Akka.Actor.Directive}},Microsoft.FSharp.Core.FSharpOption{System.Int32},Microsoft.FSharp.Core.FSharpOption{System.TimeSpan})"]

See Also