Skip to content
English

BackoffSupervisorOptionsValidator

Defined in: src/pattern/BackoffSupervisorOptions.ts:345

Validates resolved supervisor settings.

It runs once, in preStart, on the merged settings — which is what makes a bad min-backoff in a config file fail exactly like a bad one in code. Before #865 the same three rules were constructor throws, so the config path did not exist to be checked; moving them here rather than duplicating them is what keeps one rule with one message.

child is not checked here: it is required-ness, not domain validity, and every check helper is a deliberate no-op on undefined. BackoffSupervisor guards it where BrokerActor.requiredOptions() guards its own.

new BackoffSupervisorOptionsValidator(): BackoffSupervisorOptionsValidator

Defined in: src/pattern/BackoffSupervisorOptions.ts:346

BackoffSupervisorOptionsValidator

OptionsValidator<BackoffSupervisorTuningType>.constructor

validate(settings): void

Defined in: src/util/OptionsValidator.ts:109

Check the (merged) settings; throws OptionsError on the first violation. Unset (undefined) fields always pass.

Partial<T>

void

OptionsValidator.validate