OneForOneStrategy
Defined in: src/Supervision.ts:31
Applies the directive only to the failing child.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OneForOneStrategy(
decider,opts?):OneForOneStrategy
Defined in: src/Supervision.ts:35
Parameters
Section titled “Parameters”decider
Section titled “decider”StrategyOptions = {}
Returns
Section titled “Returns”OneForOneStrategy
Properties
Section titled “Properties”decider
Section titled “decider”
readonlydecider:Decider
Defined in: src/Supervision.ts:35
Implementation of
Section titled “Implementation of”maxRetries
Section titled “maxRetries”
readonlymaxRetries:number
Defined in: src/Supervision.ts:33
Maximum number of restarts tolerated within the time window. -1 = unlimited.
Implementation of
Section titled “Implementation of”
readonlyscope:"one-for-one"
Defined in: src/Supervision.ts:32
Implementation of
Section titled “Implementation of”withinTimeRangeMs
Section titled “withinTimeRangeMs”
readonlywithinTimeRangeMs:number
Defined in: src/Supervision.ts:34
Sliding time window in ms. 0 = no window (counts are never reset).