Package org.apache.kafka.clients.admin
Class ListConsumerGroupsOptions
java.lang.Object
org.apache.kafka.clients.admin.AbstractOptions<ListConsumerGroupsOptions>
org.apache.kafka.clients.admin.ListConsumerGroupsOptions
Options for 
Admin.listConsumerGroups().- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the list of group states that are requested or empty if no states have been specified.inGroupStates(Set<GroupState> groupStates) If groupStates is set, only groups in these states will be returned by listGroups().inStates(Set<ConsumerGroupState> states) Deprecated.Since 4.0.states()Deprecated.Since 4.0.types()Returns the list of group types that are requested or empty if no types have been specified.If types is set, only groups of these types will be returned by listConsumerGroups().Methods inherited from class org.apache.kafka.clients.admin.AbstractOptionstimeoutMs, timeoutMs
- 
Constructor Details- 
ListConsumerGroupsOptionspublic ListConsumerGroupsOptions()
 
- 
- 
Method Details- 
inGroupStatesIf 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.
- 
inStatesDeprecated.Since 4.0. UseinGroupStates(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.
- 
withTypesIf types is set, only groups of these types will be returned by listConsumerGroups(). Otherwise, all groups are returned.
- 
groupStatesReturns the list of group states that are requested or empty if no states have been specified.
- 
statesDeprecated.Since 4.0. UseinGroupStates(Set)instead.Returns the list of States that are requested or empty if no states have been specified.
- 
typesReturns the list of group types that are requested or empty if no types have been specified.
 
-