Package org.apache.kafka.common.config
Class ConfigDef.ValidString
java.lang.Object
org.apache.kafka.common.config.ConfigDef.ValidString
- All Implemented Interfaces:
ConfigDef.Validator
- Enclosing class:
- ConfigDef
public static class ConfigDef.ValidString extends Object implements ConfigDef.Validator
-
Method Summary
Modifier and Type Method Description void
ensureValid(String name, Object o)
Perform single configuration validation.static ConfigDef.ValidString
in(String... validStrings)
String
toString()
-
Method Details
-
in
-
ensureValid
Description copied from interface:ConfigDef.Validator
Perform single configuration validation.- Specified by:
ensureValid
in interfaceConfigDef.Validator
- Parameters:
name
- The name of the configurationo
- The value of the configuration
-
toString
-