Class ListConsumerGroupsOptions

java.lang.Object
org.apache.kafka.clients.admin.AbstractOptions<ListConsumerGroupsOptions>
org.apache.kafka.clients.admin.ListConsumerGroupsOptions

@Evolving public class ListConsumerGroupsOptions extends AbstractOptions<ListConsumerGroupsOptions>
Options for Admin.listConsumerGroups(). The API of this class is evolving, see Admin for details.
  • Constructor Details

    • ListConsumerGroupsOptions

      public ListConsumerGroupsOptions()
  • Method Details

    • inStates

      If states is set, only groups in these states will be returned by listConsumerGroups(). Otherwise, all groups are returned. This operation is supported by brokers with version 2.6.0 or later.
    • withTypes

      public ListConsumerGroupsOptions withTypes(Set<GroupType> types)
      If types is set, only groups of these types will be returned by listConsumerGroups(). Otherwise, all groups are returned.
    • states

      public Set<ConsumerGroupState> states()
      Returns the list of States that are requested or empty if no states have been specified.
    • types

      public Set<GroupType> types()
      Returns the list of group types that are requested or empty if no types have been specified.