| StrategyOneForOne Method (FSharpFuncException, Directive, FSharpOptionInt32, FSharpOptionTimeSpan) |
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.42 (1.2.3.42)
Syntax public static SupervisorStrategy OneForOne(
FSharpFunc<Exception, Directive> decider,
FSharpOption<int> retries,
FSharpOption<TimeSpan> timeout
)
static member OneForOne :
decider : FSharpFunc<Exception, Directive> *
retries : FSharpOption<int> *
timeout : FSharpOption<TimeSpan> -> SupervisorStrategy
Parameters
- decider
- Type: Microsoft.FSharp.CoreFSharpFuncException, Directive
Used to determine a actor behavior response depending on exception occurred. - retries
- Type: Microsoft.FSharp.CoreFSharpOptionInt32
Defines a number of times, an actor could be restarted. If it's a negative value, there is not limit. - timeout
- Type: Microsoft.FSharp.CoreFSharpOptionTimeSpan
Defines time window for number of retries to occur.
Return Value
Type:
SupervisorStrategy[Missing <returns> documentation for "M:Akka.FSharp.Strategy.OneForOne(Microsoft.FSharp.Core.FSharpFunc{System.Exception,Akka.Actor.Directive},Microsoft.FSharp.Core.FSharpOption{System.Int32},Microsoft.FSharp.Core.FSharpOption{System.TimeSpan})"]
See Also