TsgcWSPClient_Kafka › Methods › CreateTopic
Creates a topic on the Kafka cluster.
procedure CreateTopic(const aTopicName: string; aNumPartitions: Integer = 1; aReplicationFactor: Integer = 1);
Sends a CreateTopics request to the broker. The replication factor must not exceed the number of available brokers in the cluster.
oKafka.CreateTopic('my-topic', 1, 1);