Class ListShareGroupOffsetsSpec

java.lang.Object
org.apache.kafka.clients.admin.ListShareGroupOffsetsSpec

@Evolving public class ListShareGroupOffsetsSpec extends Object
Specification of share group offsets to list using Admin.listShareGroupOffsets(Map, ListShareGroupOffsetsOptions).

The API of this class is evolving, see Admin for details.

  • Constructor Details

    • ListShareGroupOffsetsSpec

      public ListShareGroupOffsetsSpec()
  • Method Details

    • topicPartitions

      public ListShareGroupOffsetsSpec topicPartitions(Collection<TopicPartition> topicPartitions)
      Set the topic partitions whose offsets are to be listed for a share group.
      Parameters:
      topicPartitions - List of topic partitions to include
    • topicPartitions

      public Collection<TopicPartition> topicPartitions()
      Returns the topic partitions whose offsets are to be listed for a share group. null indicates that offsets of all partitions of the group are to be listed.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object