Package org.apache.kafka.clients.admin
Class ListConsumerGroupOffsetsSpec
- java.lang.Object
-
- org.apache.kafka.clients.admin.ListConsumerGroupOffsetsSpec
-
@Evolving public class ListConsumerGroupOffsetsSpec extends Object
Specification of consumer group offsets to list usingAdmin.listConsumerGroupOffsets(java.util.Map)
. The API of this class is evolving, seeAdmin
for details.
-
-
Constructor Summary
Constructors Constructor Description ListConsumerGroupOffsetsSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Collection<TopicPartition>
topicPartitions()
Returns the topic partitions whose offsets are to be listed for a consumer group.ListConsumerGroupOffsetsSpec
topicPartitions(Collection<TopicPartition> topicPartitions)
Set the topic partitions whose offsets are to be listed for a consumer group.String
toString()
-
-
-
Method Detail
-
topicPartitions
public ListConsumerGroupOffsetsSpec topicPartitions(Collection<TopicPartition> topicPartitions)
Set the topic partitions whose offsets are to be listed for a consumer group.null
includes all topic partitions.- Parameters:
topicPartitions
- List of topic partitions to include- Returns:
- This ListConsumerGroupOffsetSpec
-
topicPartitions
public Collection<TopicPartition> topicPartitions()
Returns the topic partitions whose offsets are to be listed for a consumer group.null
indicates that offsets of all partitions of the group are to be listed.
-
-