confluent-kafka-dotnet
Show / Hide Table of Contents

Class Metadata

Kafka cluster metadata.

Inheritance
System.Object
Metadata
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public class Metadata

Constructors

Metadata(List<BrokerMetadata>, List<TopicMetadata>, Int32, String)

Instantiates a new Metadata class instance.

Declaration
public Metadata(List<BrokerMetadata> brokers, List<TopicMetadata> topics, int originatingBrokerId, string originatingBrokerName)
Parameters
Type Name Description
System.Collections.Generic.List<BrokerMetadata> brokers

Information about each constituent broker of the cluster.

System.Collections.Generic.List<TopicMetadata> topics

Information about requested topics in the cluster.

System.Int32 originatingBrokerId

The id of the broker that provided this metadata.

System.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
System.Collections.Generic.List<BrokerMetadata>

OriginatingBrokerId

Gets the id of the broker that provided this metadata.

Declaration
public int OriginatingBrokerId { get; }
Property Value
Type Description
System.Int32

OriginatingBrokerName

Gets the name of the broker that provided this metadata.

Declaration
public string OriginatingBrokerName { get; }
Property Value
Type Description
System.String

Topics

Gets information about requested topics in the cluster.

Declaration
public List<TopicMetadata> Topics { get; }
Property Value
Type Description
System.Collections.Generic.List<TopicMetadata>

Methods

ToString()

Returns a JSON representation of the Metadata object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A JSON representation of the Metadata object.

Overrides
System.Object.ToString()
In This Article