Package org.apache.kafka.common.config
Class ConfigDef.LambdaValidator
- java.lang.Object
-
- org.apache.kafka.common.config.ConfigDef.LambdaValidator
-
- All Implemented Interfaces:
ConfigDef.Validator
- Enclosing class:
- ConfigDef
public static class ConfigDef.LambdaValidator extends Object implements ConfigDef.Validator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureValid(String name, Object value)
Perform single configuration validation.String
toString()
static ConfigDef.LambdaValidator
with(BiConsumer<String,Object> ensureValid, Supplier<String> toStringFunction)
-
-
-
Method Detail
-
with
public static ConfigDef.LambdaValidator with(BiConsumer<String,Object> ensureValid, Supplier<String> toStringFunction)
-
ensureValid
public void ensureValid(String name, 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
-
-