THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 with any permutation of features that the user wants (this will move the builder in the connect module and make minor changes).
This is what will be passed in AdminClient#createTopics to specify the replication factors. The default values will remain the same (sentinel value of -1).
...