You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2025/06/06 07:09:00 UTC

[jira] [Created] (KAFKA-19381) Add a ConfigDef.ConfigKey builder

Claude Warren created KAFKA-19381:
-------------------------------------

             Summary: Add a ConfigDef.ConfigKey builder
                 Key: KAFKA-19381
                 URL: https://issues.apache.org/jira/browse/KAFKA-19381
             Project: Kafka
          Issue Type: Improvement
          Components: clients
    Affects Versions: 4.0.0
            Reporter: Claude Warren


The ConfigDef.define() methods increased in number of parameters to the point where it is difficult to maintain.  This proposal is to add a ConfigKey.Builder.

 

The builder must:
 * Be extensible since ConfigKey is.
 * Be created by calling ConfigKey.builder(name), where name is the name of the config parameter.
 * Provide reasonable defaults as found in the current ConfigDef.define() methods.
 * during its build() method call a new constructor in ConfigKey that takes the Builder as an argument

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)