Class Metadata
Kafka cluster metadata.
Inherited Members
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class Metadata
Constructors
Metadata(List<BrokerMetadata>, List<TopicMetadata>, int, string)
Instantiates a new Metadata class instance.
Declaration
public Metadata(List<BrokerMetadata> brokers, List<TopicMetadata> topics, int originatingBrokerId, string originatingBrokerName)
Parameters
Type | Name | Description |
---|---|---|
List<BrokerMetadata> | brokers | Information about each constituent broker of the cluster. |
List<TopicMetadata> | topics | Information about requested topics in the cluster. |
int | originatingBrokerId | The id of the broker that provided this metadata. |
string | originatingBrokerName | The name of the broker that provided this metadata. |
Properties
Brokers
Gets information about each constituent broker of the cluster.
Declaration
public List<BrokerMetadata> Brokers { get; }
Property Value
Type | Description |
---|---|
List<BrokerMetadata> |
OriginatingBrokerId
Gets the id of the broker that provided this metadata.
Declaration
public int OriginatingBrokerId { get; }
Property Value
Type | Description |
---|---|
int |
OriginatingBrokerName
Gets the name of the broker that provided this metadata.
Declaration
public string OriginatingBrokerName { get; }
Property Value
Type | Description |
---|---|
string |
Topics
Gets information about requested topics in the cluster.
Declaration
public List<TopicMetadata> Topics { get; }
Property Value
Type | Description |
---|---|
List<TopicMetadata> |
Methods
ToString()
Returns a JSON representation of the Metadata object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A JSON representation of the Metadata object. |