Package io.aiven.commons.kafka.config
Class ExtendedConfigKey.Builder<T extends ExtendedConfigKey.Builder<?>>
java.lang.Object
io.aiven.commons.kafka.config.ConfigKeyBuilder<T>
io.aiven.commons.kafka.config.ExtendedConfigKey.Builder<T>
- Type Parameters:
T- the type of the file ConfigKey instance.
- Enclosing class:
- ExtendedConfigKey
public static class ExtendedConfigKey.Builder<T extends ExtendedConfigKey.Builder<?>>
extends ConfigKeyBuilder<T>
The builder for an ExtendedConfigKey.
-
Field Summary
Fields inherited from class io.aiven.commons.kafka.config.ConfigKeyBuilder
defaultValue, dependents, displayName, documentation, group, importance, internalConfig, name, orderInGroup, recommender, type, validator, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a ConfigKey from the specified values.final TdeprecatedInfo(DeprecatedInfo deprecatedInfo) Sets the deprecation info.final TdeprecatedInfo(DeprecatedInfo.Builder deprecatedInfoBuilder) Sets the deprecation info.protected StringGenerates the documentation.final TSets the since value.static <T extends ExtendedConfigKey.Builder<?>>
ExtendedConfigKey.Builder<T>unbuild(org.apache.kafka.common.config.ConfigDef.ConfigKey key) unbuilds a key.Methods inherited from class io.aiven.commons.kafka.config.ConfigKeyBuilder
defaultValue, dependent, dependents, dependents, displayName, documentation, group, importance, internalConfig, orderInGroup, recommender, self, type, validator, width
-
Constructor Details
-
Builder
The builder.- Parameters:
name- the name of the final ConfigKey
-
-
Method Details
-
unbuild
public static <T extends ExtendedConfigKey.Builder<?>> ExtendedConfigKey.Builder<T> unbuild(org.apache.kafka.common.config.ConfigDef.ConfigKey key) unbuilds a key. Creates an ExtendedConfigKey.Builder from the key.- Type Parameters:
T- the type of the builder.- Parameters:
key- the key to unbuild.- Returns:
- An extended key builder
-
build
Description copied from class:ConfigKeyBuilderBuilds a ConfigKey from the specified values.- Overrides:
buildin classConfigKeyBuilder<T extends ExtendedConfigKey.Builder<?>>- Returns:
- a ConfigKey from the specified values.
-
generateDocumentation
Description copied from class:ConfigKeyBuilderGenerates the documentation. This is an extension point for ConfigKey builders to modify the documentation. For example adding deprecation information, or interactions with other keys in the configuration.- Overrides:
generateDocumentationin classConfigKeyBuilder<T extends ExtendedConfigKey.Builder<?>>- Returns:
- the documentation for the component.
-
deprecatedInfo
Sets the deprecation info.- Parameters:
deprecatedInfoBuilder- the builder for the DeprecatedInfo- Returns:
- this
-
deprecatedInfo
Sets the deprecation info.- Parameters:
deprecatedInfo- the Deprecated info to use.- Returns:
- this
-
since
Sets the since value.- Parameters:
since- the since value.- Returns:
- this.
-