Class ConsumerGroupListing

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

public class ConsumerGroupListing extends Object
A listing of a consumer group in the cluster.
  • Constructor Details

    • ConsumerGroupListing

      public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup)
      Create an instance with the specified parameters.
      Parameters:
      groupId - Group Id
      isSimpleConsumerGroup - If consumer group is simple or not.
    • ConsumerGroupListing

      public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state)
      Create an instance with the specified parameters.
      Parameters:
      groupId - Group Id
      isSimpleConsumerGroup - If consumer group is simple or not.
      state - The state of the consumer group
    • ConsumerGroupListing

      public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state, Optional<GroupType> type)
      Create an instance with the specified parameters.
      Parameters:
      groupId - Group Id.
      isSimpleConsumerGroup - If consumer group is simple or not.
      state - The state of the consumer group.
      type - The type of the consumer group.
  • Method Details

    • groupId

      public String groupId()
      Consumer Group Id
    • isSimpleConsumerGroup

      public boolean isSimpleConsumerGroup()
      If Consumer Group is simple or not.
    • state

      public Optional<ConsumerGroupState> state()
      Consumer Group state
    • type

      public Optional<GroupType> type()
      The type of the consumer group.
      Returns:
      An Optional containing the type, if available.
    • toString

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

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

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