confluent-kafka-dotnet
Show / Hide Table of Contents

Class ConsumerGroupTopicPartitions

Represents a Kafka tuple (consumer group, list of TopicPartions).

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

Constructors

ConsumerGroupTopicPartitions(string, List<TopicPartition>)

Initializes a new ConsumerGroupTopicPartitions instance.

Declaration
public ConsumerGroupTopicPartitions(string group, List<TopicPartition> topicPartitions)
Parameters
Type Name Description
string group

Kafka consumer group ID.

List<TopicPartition> topicPartitions

A list of Kafka (topic, partition) tuples.

Properties

Group

Gets the Kafka consumer group ID.

Declaration
public string Group { get; }
Property Value
Type Description
string

TopicPartitions

Gets the list of Kafka (topic, partition) tuples.

Declaration
public List<TopicPartition> TopicPartitions { get; }
Property Value
Type Description
List<TopicPartition>

Methods

ToString()

Returns a string representation of the ConsumerGroupTopicPartitions object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the ConsumerGroupTopicPartitions object.

Overrides
object.ToString()
In this article