ClusterRouterOptionsValidator
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
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.
Extends
Section titled “Extends”OptionsValidator<ClusterRouterOptionsType<TMessage>>
Type Parameters
Section titled “Type Parameters”TMessage
Section titled “TMessage”TMessage
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClusterRouterOptionsValidator<
TMessage>():ClusterRouterOptionsValidator<TMessage>
Defined in: src/cluster/router/ClusterRouterOptions.ts:131
Returns
Section titled “Returns”ClusterRouterOptionsValidator<TMessage>
Overrides
Section titled “Overrides”OptionsValidator<ClusterRouterOptionsType<TMessage>>.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
