Class BrokerMetadata
Metadata pertaining to a single Kafka broker.
Inherited Members
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
| Type | Name | Description |
|---|---|---|
| int | brokerId | The Kafka broker id. |
| string | host | The Kafka broker hostname. |
| int | port | The Kafka broker port. |
Properties
BrokerId
Gets the Kafka broker id.
Declaration
public int BrokerId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Host
Gets the Kafka broker hostname.
Declaration
public string Host { get; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Gets the Kafka broker port.
Declaration
public int Port { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
ToString()
Returns a JSON representation of the BrokerMetadata object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A JSON representation of the BrokerMetadata object. |