@InterfaceStability.Evolving public class ListConsumerGroupsOptions extends AbstractOptions<ListConsumerGroupsOptions>
Admin.listConsumerGroups()
.
The API of this class is evolving, see Admin
for details.Constructor and Description |
---|
ListConsumerGroupsOptions() |
Modifier and Type | Method and Description |
---|---|
ListConsumerGroupsOptions |
inStates(Set<ConsumerGroupState> states)
If states is set, only groups in these states will be returned by listConsumerGroups().
|
Set<ConsumerGroupState> |
states()
Returns the list of States that are requested or empty if no states have been specified.
|
Set<GroupType> |
types()
Returns the list of group types that are requested or empty if no types have been specified.
|
ListConsumerGroupsOptions |
withTypes(Set<GroupType> types)
If types is set, only groups of these types will be returned by listConsumerGroups().
|
timeoutMs, timeoutMs
public ListConsumerGroupsOptions inStates(Set<ConsumerGroupState> states)
public ListConsumerGroupsOptions withTypes(Set<GroupType> types)
public Set<ConsumerGroupState> states()