confluent-kafka-dotnet
Show / Hide Table of Contents

Class BrokerMetadata

Metadata pertaining to a single Kafka broker.

Inheritance
System.Object
BrokerMetadata
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 BrokerMetadata

Constructors

BrokerMetadata(Int32, String, Int32)

Initializes a new BrokerMetadata class instance.

Declaration
public BrokerMetadata(int brokerId, string host, int port)
Parameters
Type Name Description
System.Int32 brokerId

The Kafka broker id.

System.String host

The Kafka broker hostname.

System.Int32 port

The Kafka broker port.

Properties

BrokerId

Gets the Kafka broker id.

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

Host

Gets the Kafka broker hostname.

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

Port

Gets the Kafka broker port.

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

Methods

ToString()

Returns a JSON representation of the BrokerMetadata object.

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

A JSON representation of the BrokerMetadata object.

Overrides
System.Object.ToString()
In This Article