TsgcWSPClient_KafkaMethods › GetMetadata

GetMetadata Method

Requests cluster and topic metadata (brokers, partitions, leaders).

Syntax

function GetMetadata(const aTopics: array of string): TsgcKafkaMetadataResponse;

Parameters

Remarks

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.

Example

oMeta := oKafka.GetMetadata(['my-topic']);
// pass [] for all topics
oMeta := oKafka.GetMetadata([]);

Back to Methods