confluent-kafka-dotnet
Show / Hide Table of Contents

Class BrokerMetadata

Metadata pertaining to a single Kafka broker.

Inheritance
object
BrokerMetadata
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 BrokerMetadata

Constructors

BrokerMetadata(int, string, int)

Initializes a new BrokerMetadata class instance.

Declaration
public BrokerMetadata(int brokerId, string host, int port)
Parameters
TypeNameDescription
intbrokerId

The Kafka broker id.

stringhost

The Kafka broker hostname.

intport

The Kafka broker port.

Properties

BrokerId

Gets the Kafka broker id.

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

Host

Gets the Kafka broker hostname.

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

Port

Gets the Kafka broker port.

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

Methods

ToString()

Returns a JSON representation of the BrokerMetadata object.

Declaration
public override string ToString()
Returns
TypeDescription
string

A JSON representation of the BrokerMetadata object.

Overrides
object.ToString()
In this article