Package org.apache.kafka.clients.admin
Class ListGroupsOptions
java.lang.Object
org.apache.kafka.clients.admin.AbstractOptions<ListGroupsOptions>
org.apache.kafka.clients.admin.ListGroupsOptions
Options for
Admin.listGroups()
.
The API of this class is evolving, see Admin
for details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListGroupsOptions
Only consumer groups will be returned by listGroups().static ListGroupsOptions
Only share groups will be returned by listGroups().static ListGroupsOptions
Only streams groups will be returned by listGroups().Returns 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().Returns the list of protocol types that are requested or empty if no protocol types have been specified.types()
Returns the list of group types that are requested or empty if no types have been specified.withProtocolTypes
(Set<String> protocolTypes) If protocol types is set, only groups of these protocol types will be returned by listGroups().If types is set, only groups of these types will be returned by listGroups().Methods inherited from class org.apache.kafka.clients.admin.AbstractOptions
timeoutMs, timeoutMs
-
Constructor Details
-
ListGroupsOptions
public ListGroupsOptions()
-
-
Method Details
-
forConsumerGroups
Only consumer groups will be returned by listGroups(). This operation sets filters on group type and protocol type which select consumer groups. -
forStreamsGroups
Only streams groups will be returned by listGroups(). This operation sets a filter on group type which select streams groups. -
inGroupStates
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. -
withProtocolTypes
If protocol types is set, only groups of these protocol types will be returned by listGroups(). Otherwise, all groups are returned. -
withTypes
If types is set, only groups of these types will be returned by listGroups(). Otherwise, all groups are returned. -
groupStates
Returns the list of group states that are requested or empty if no states have been specified. -
protocolTypes
Returns the list of protocol types that are requested or empty if no protocol types have been specified. -
types
Returns the list of group types that are requested or empty if no types have been specified.
-