跳转到内容
简体中文

PhiAccrualOptionsValidator

此内容尚不支持你的语言。

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