Class ConsumerGroupListing

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

@Deprecated(since="4.1") public class ConsumerGroupListing extends Object
Deprecated.
A listing of a consumer group in the cluster.
  • Constructor Details

    • ConsumerGroupListing

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

      @Deprecated public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state)
      Deprecated.
      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

      @Deprecated 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.
    • ConsumerGroupListing

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

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

    • groupId

      public String groupId()
      Deprecated.
      Consumer Group Id
    • isSimpleConsumerGroup

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

      public Optional<GroupState> groupState()
      Deprecated.
      Group state
    • state

      Deprecated.
      Since 4.0. Use groupState() instead.
      Consumer Group state
    • type

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

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

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

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