TsgcWSPClient_Kafka › Methods › GetMetadata
Requests cluster and topic metadata (brokers, partitions, leaders).
function GetMetadata(const aTopics: array of string): TsgcKafkaMetadataResponse;
Returns a TsgcKafkaMetadataResponse describing the cluster, including the list of brokers, the partitions of each topic and the partition leaders. This information is used by the client to route produce and fetch requests to the correct broker.
oMeta := oKafka.GetMetadata(['my-topic']);
// pass [] for all topics
oMeta := oKafka.GetMetadata([]);