@InterfaceStability.Evolving public class ListConsumerGroupOffsetsSpec extends Object
Admin.listConsumerGroupOffsets(java.util.Map)
.
The API of this class is evolving, see Admin
for details.Constructor and Description |
---|
ListConsumerGroupOffsetsSpec() |
Modifier and Type | Method and 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() |
public ListConsumerGroupOffsetsSpec topicPartitions(Collection<TopicPartition> topicPartitions)
null
includes all topic partitions.topicPartitions
- List of topic partitions to includepublic Collection<TopicPartition> topicPartitions()
null
indicates that offsets of all partitions of the group are to be listed.