| StrategyAllForOne Method (FSharpExprFSharpFuncException, Directive, FSharpOptionInt32, FSharpOptionTimeSpan) |
Returns a supervisor strategy appliable to each supervised actor when any of them had 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 AllForOne(
FSharpExpr<FSharpFunc<Exception, Directive>> decider,
FSharpOption<int> retries,
FSharpOption<TimeSpan> timeout
)
static member AllForOne :
decider : FSharpExpr<FSharpFunc<Exception, Directive>> *
retries : FSharpOption<int> *
timeout : FSharpOption<TimeSpan> -> SupervisorStrategy
Parameters
- decider
- Type: Microsoft.FSharp.QuotationsFSharpExprFSharpFuncException, 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.AllForOne(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