Перейти к содержимому
Русский

ClusterRouterOptionsValidator

Это содержимое пока не доступно на вашем языке.

Defined in: src/cluster/router/ClusterRouterOptions.ts:130

Validates resolved ClusterRouterOptionsType settings — a known routerType, a non-empty routeePath, sane mailbox-depth timings, and the cross-field rules that consistent-hashing needs an extractKey and that a staleness bound must outlive the refresh that feeds it.

TMessage

new ClusterRouterOptionsValidator<TMessage>(): ClusterRouterOptionsValidator<TMessage>

Defined in: src/cluster/router/ClusterRouterOptions.ts:131

ClusterRouterOptionsValidator<TMessage>

OptionsValidator<ClusterRouterOptionsType<TMessage>>.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