Package org.apache.kafka.common.config
Interface ConfigDef.Validator
- All Known Implementing Classes:
ConfigDef.CaseInsensitiveValidString
,ConfigDef.CompositeValidator
,ConfigDef.LambdaValidator
,ConfigDef.NonEmptyString
,ConfigDef.NonEmptyStringWithoutControlChars
,ConfigDef.NonNullValidator
,ConfigDef.Range
,ConfigDef.ValidList
,ConfigDef.ValidString
- Enclosing class:
- ConfigDef
public static interface ConfigDef.Validator
Validation logic the user may provide to perform single configuration validation.
-
Method Summary
Modifier and Type Method Description void
ensureValid(String name, Object value)
Perform single configuration validation.
-
Method Details
-
ensureValid
Perform single configuration validation.- Parameters:
name
- The name of the configurationvalue
- The value of the configuration- Throws:
ConfigException
- if the value is invalid.
-