| OneForOneStrategy Constructor (Int32, Int32, IDecider, Boolean) |
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.42 (1.2.3.42)
Syntax public OneForOneStrategy(
int maxNrOfRetries,
int withinTimeMilliseconds,
IDecider decider,
bool loggingEnabled = true
)
new :
maxNrOfRetries : int *
withinTimeMilliseconds : int *
decider : IDecider *
?loggingEnabled : bool
(* Defaults:
let _loggingEnabled = defaultArg loggingEnabled true
*)
-> OneForOneStrategy
Parameters
- maxNrOfRetries
- Type: SystemInt32
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.
- withinTimeMilliseconds
- Type: SystemInt32
duration in milliseconds of the time window for maxNrOfRetries, negative values means no window. - decider
- Type: Akka.ActorIDecider
Mapping from an Exception to Directive - loggingEnabled (Optional)
- Type: SystemBoolean
If true failures will be logged
See Also