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