AllForOneStrategy
Defined in: src/Supervision.ts:42
Applies the directive to every child when any one fails.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AllForOneStrategy(
decider,opts?):AllForOneStrategy
Defined in: src/Supervision.ts:46
Parameters
Section titled “Parameters”decider
Section titled “decider”StrategyOptions = {}
Returns
Section titled “Returns”AllForOneStrategy
Properties
Section titled “Properties”decider
Section titled “decider”
readonlydecider:Decider
Defined in: src/Supervision.ts:46
Implementation of
Section titled “Implementation of”maxRetries
Section titled “maxRetries”
readonlymaxRetries:number
Defined in: src/Supervision.ts:44
Maximum number of restarts tolerated within the time window. -1 = unlimited.
Implementation of
Section titled “Implementation of”
readonlyscope:"all-for-one"
Defined in: src/Supervision.ts:43
Implementation of
Section titled “Implementation of”withinTimeRangeMs
Section titled “withinTimeRangeMs”
readonlywithinTimeRangeMs:number
Defined in: src/Supervision.ts:45
Sliding time window in ms. 0 = no window (counts are never reset).