Class ListConsumerGroupsOptions

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

public class ListConsumerGroupsOptions extends AbstractOptions<ListConsumerGroupsOptions>
  • Constructor Details Link icon

    • ListConsumerGroupsOptions Link icon

      public ListConsumerGroupsOptions()
  • Method Details Link icon

    • inGroupStates Link icon

      public ListConsumerGroupsOptions inGroupStates(Set<GroupState> groupStates)
      If groupStates is set, only groups in these states will be returned by listGroups(). Otherwise, all groups are returned. This operation is supported by brokers with version 2.6.0 or later.
    • inStates Link icon

      Deprecated.
      Since 4.0. Use inGroupStates(Set) instead.
      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 Link icon

      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.
    • groupStates Link icon

      public Set<GroupState> groupStates()
      Returns the list of group states that are requested or empty if no states have been specified.
    • states Link icon

      Deprecated.
      Since 4.0. Use inGroupStates(Set) instead.
      Returns the list of States that are requested or empty if no states have been specified.
    • types Link icon

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