Zum Inhalt springen
Deutsch

PhiAccrualOptionsValidator

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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