Class TopicMetadata
Metadata pertaining to a single Kafka topic.
Inheritance
System.Object
TopicMetadata
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 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 |
---|---|---|
System.String | topic | The topic name. |
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.List<PartitionMetadata> |
Topic
Gets the topic name.
Declaration
public string Topic { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Returns a JSON representation of the TopicMetadata object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A JSON representation the TopicMetadata object. |
Overrides
System.Object.ToString()