TsgcWSPClient_KafkaMethods › CreateTopic

CreateTopic Method

Creates a topic on the Kafka cluster.

Syntax

procedure CreateTopic(const aTopicName: string; aNumPartitions: Integer = 1; aReplicationFactor: Integer = 1);

Parameters

Remarks

Sends a CreateTopics request to the broker. The replication factor must not exceed the number of available brokers in the cluster.

Example

oKafka.CreateTopic('my-topic', 1, 1);

Back to Methods