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 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.java.lang.String
toString()
static ConfigDef.LambdaValidator
with(java.util.function.BiConsumer<java.lang.String,java.lang.Object> ensureValid, java.util.function.Supplier<java.lang.String> toStringFunction)
-
-
-
Method Detail
-
with
public static ConfigDef.LambdaValidator with(java.util.function.BiConsumer<java.lang.String,java.lang.Object> ensureValid, java.util.function.Supplier<java.lang.String> toStringFunction)
-
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
-
-