Class TopicMetadata
Metadata pertaining to a single Kafka topic.
Inherited Members
Namespace: Confluent.Kafka
Assembly: Confluent.Kafka.dll
Syntax
public class TopicMetadata
Constructors
TopicMetadata(string, List<PartitionMetadata>, Error)
Initializes a new TopicMetadata class instance.
Declaration
public TopicMetadata(string topic, List<PartitionMetadata> partitions, Error error)
Parameters
Type | Name | Description |
---|---|---|
string | topic | The topic name. |
List<PartitionMetadata> | partitions | Metadata for each of the topic's partitions. |
Error | error | A rich Error object associated with the request for this topic metadata. |
Properties
Error
A rich Error object associated with the request for this topic metadata.
Declaration
public Error Error { get; }
Property Value
Type | Description |
---|---|
Error |
Partitions
Gets metadata for each of the topics partitions.
Declaration
public List<PartitionMetadata> Partitions { get; }
Property Value
Type | Description |
---|---|
List<PartitionMetadata> |
Topic
Gets the topic name.
Declaration
public string Topic { get; }
Property Value
Type | Description |
---|---|
string |
Methods
ToString()
Returns a JSON representation of the TopicMetadata object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A JSON representation the TopicMetadata object. |