ClusterClientOptionsValidator
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/cluster/ClusterClientOptions.ts:84
Validates resolved ClusterClientOptionsType settings. contactPoints
is required and non-empty (there is nothing to dial otherwise); it is
checked explicitly because the field-name helpers treat an unset value as
“not provided” and pass.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClusterClientOptionsValidator():
ClusterClientOptionsValidator
Defined in: src/cluster/ClusterClientOptions.ts:85
Returns
Section titled “Returns”ClusterClientOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<ClusterClientOptionsType>.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
