BackoffSupervisorOptionsValidator
Esta página aún no está disponible en tu idioma.
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.
Extends
Section titled “Extends”OptionsValidator<BackoffSupervisorTuningType>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BackoffSupervisorOptionsValidator():
BackoffSupervisorOptionsValidator
Defined in: src/pattern/BackoffSupervisorOptions.ts:346
Returns
Section titled “Returns”BackoffSupervisorOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<BackoffSupervisorTuningType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”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.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
