OneForOneStrategy Constructor (NullableInt32, NullableTimeSpan, FuncException, Directive) |
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.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic OneForOneStrategy(
Nullable<int> maxNrOfRetries,
Nullable<TimeSpan> withinTimeRange,
Func<Exception, Directive> decider
)
Public Sub New (
maxNrOfRetries As Nullable(Of Integer),
withinTimeRange As Nullable(Of TimeSpan),
decider As Func(Of Exception, Directive)
)
public:
OneForOneStrategy(
Nullable<int> maxNrOfRetries,
Nullable<TimeSpan> withinTimeRange,
Func<Exception^, Directive>^ decider
)
new :
maxNrOfRetries : Nullable<int> *
withinTimeRange : Nullable<TimeSpan> *
decider : Func<Exception, Directive> -> OneForOneStrategy
Parameters
- maxNrOfRetries
- Type: SystemNullableInt32
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: SystemNullableTimeSpan
duration of the time window for maxNrOfRetries, Duration.Inf means no window. - decider
- Type: SystemFuncException, Directive
mapping from Exception to Directive
See Also