Skip to main content
Version: 3.x

IClusterManager.GetConsumerGroupOffsetsAsync method

Retrieves the offsets for a specified consumer group and a collection of topics. The offsets indicate where the consumer group is in its consumption of the topics.

public Task<IEnumerable<TopicPartitionOffset>> GetConsumerGroupOffsetsAsync(string consumerGroup, 
IEnumerable<string> topicsName)
parameterdescription
consumerGroupThe name of the consumer group for which to retrieve offsets.
topicsNameA collection of topic names for which to retrieve offsets.

Return Value

An enumerable collection of TopicPartitionOffset objects, each of which contains offset information for a specific topic partition in the consumer group.

See Also