confluent-kafka-dotnet
Show / Hide Table of Contents

Class Metadata

Kafka cluster metadata.

Inheritance
object
Metadata
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
TypeNameDescription
List<BrokerMetadata>brokers

Information about each constituent broker of the cluster.

List<TopicMetadata>topics

Information about requested topics in the cluster.

intoriginatingBrokerId

The id of the broker that provided this metadata.

stringoriginatingBrokerName

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
TypeDescription
List<BrokerMetadata>

OriginatingBrokerId

Gets the id of the broker that provided this metadata.

Declaration
public int OriginatingBrokerId { get; }
Property Value
TypeDescription
int

OriginatingBrokerName

Gets the name of the broker that provided this metadata.

Declaration
public string OriginatingBrokerName { get; }
Property Value
TypeDescription
string

Topics

Gets information about requested topics in the cluster.

Declaration
public List<TopicMetadata> Topics { get; }
Property Value
TypeDescription
List<TopicMetadata>

Methods

ToString()

Returns a JSON representation of the Metadata object.

Declaration
public override string ToString()
Returns
TypeDescription
string

A JSON representation of the Metadata object.

Overrides
object.ToString()
In this article