FailureDetectorOptionsValidator
Ce contenu n’est pas encore disponible dans votre langue.
Defined in: src/cluster/FailureDetectorOptions.ts:66
Validates resolved FailureDetectorOptionsType settings — every
threshold is a positive duration, and downAfterMs must exceed
unreachableAfterMs.
The ordering rule is not cosmetic. FailureDetector.decide tests down
before unreachable, both against the time since the last heartbeat, so
downAfterMs <= unreachableAfterMs makes the unreachable branch
unreachable code: the peer jumps straight from healthy to down, skipping
the state that exists to let a transient network blip recover. Nothing
used to reject that configuration.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FailureDetectorOptionsValidator():
FailureDetectorOptionsValidator
Defined in: src/cluster/FailureDetectorOptions.ts:67
Returns
Section titled “Returns”FailureDetectorOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<FailureDetectorOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:75
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
