fun newTopicOf(config: Map<String, String>? = null, name: String? = null, numPartitions: Int? = null, replicationFactor: Short? = null): NewTopic
A function providing a DSL for building io.vertx.kafka.admin.NewTopic objects.
A new topic to be created
config
- Set the configuration for the new topic or null if no configs ever specified
name
- Set the name of the topic to be created
numPartitions
- Set the number of partitions for the new topic or -1 if a replica assignment has been specified
replicationFactor
- Set the replication factor for the new topic or -1 if a replica assignment has been specified