Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NewTopic will now introduce two new constructors (note that we assume it is unlikely a user will want to specify replicas but not partitions)a new constructor:

Code Block
public NewTopic(String name); // creates a topic with default partitions and default replication factor
public NewTopic(String name, int numPartitions); // creates a topic with default replication factor

We will also introduce a builder which makes it easier to construct a NewTopic make the NewTopicBuilder a first class API for constructing topics with any permutation of features that the user wants (this will move the builder in the connect module and make minor changes)defaults and specific configurations.

This (NewTopic) is what will be passed in AdminClient#createTopics to specify the replication factors. The default values will remain the same (sentinel value of -1).

...