Optional ReadonlymaxOptional ReadonlynameOptional ReadonlynowClock used for the restart window; defaults to Date.now. Inject one for deterministic tests.
Optional ReadonlyonObservability hook invoked for every child failure before a decision is made.
Optional ReadonlystrategyDefaults to 'one-for-one'.
Optional ReadonlysupervisorParent supervisor to escalate to when this one gives up.
Optional ReadonlywindowLength of the restart window in milliseconds. Defaults to 5000.
Maximum restarts allowed within
windowbefore giving up. Defaults to3.