Versions Compared

Key

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

...

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

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
public NewTopic(String name, short replicationFactor); // creates a topic with default partitioning 

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).

...