Aller au contenu
Français

PhiAccrualOptionsValidator

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: src/cluster/PhiAccrualOptions.ts:75

Validates resolved PhiAccrualOptionsType settings — every field is a positive duration/count, and downThreshold must exceed unreachableThreshold (a non-strictly-ordered pair would flag peers down before they are ever unreachable).

new PhiAccrualOptionsValidator(): PhiAccrualOptionsValidator

Defined in: src/cluster/PhiAccrualOptions.ts:76

PhiAccrualOptionsValidator

OptionsValidator<PhiAccrualOptionsType>.constructor

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.

Partial<T>

void

OptionsValidator.validate