Package org.apache.kafka.clients.admin
Class ConsumerGroupDescription
java.lang.Object
org.apache.kafka.clients.admin.ConsumerGroupDescription
A detailed description of a single consumer group in the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionConsumerGroupDescription
(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, ConsumerGroupState state, Node coordinator) Deprecated.Since 4.0.ConsumerGroupDescription
(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, ConsumerGroupState state, Node coordinator, Set<AclOperation> authorizedOperations) Deprecated.Since 4.0.ConsumerGroupDescription
(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, GroupType type, ConsumerGroupState state, Node coordinator, Set<AclOperation> authorizedOperations) Deprecated.Since 4.0.ConsumerGroupDescription
(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, GroupType type, GroupState groupState, Node coordinator, Set<AclOperation> authorizedOperations, Optional<Integer> groupEpoch, Optional<Integer> targetAssignmentEpoch) -
Method Summary
Modifier and TypeMethodDescriptionauthorizedOperations for this group, or null if that information is not known.The consumer group coordinator, or null if the coordinator is not known.boolean
The epoch of the consumer group.groupId()
The id of the consumer group.The group state, or UNKNOWN if the state is too new for us to parse.int
hashCode()
boolean
If consumer group is simple or not.members()
A list of the members of the consumer group.The consumer group partition assignor.state()
Deprecated.Since 4.0.The epoch of the target assignment.toString()
type()
The group type (or the protocol) of this consumer group.
-
Constructor Details
-
ConsumerGroupDescription
@Deprecated public ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, ConsumerGroupState state, Node coordinator) Deprecated. -
ConsumerGroupDescription
@Deprecated public ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, ConsumerGroupState state, Node coordinator, Set<AclOperation> authorizedOperations) Deprecated. -
ConsumerGroupDescription
@Deprecated public ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, GroupType type, ConsumerGroupState state, Node coordinator, Set<AclOperation> authorizedOperations) Deprecated. -
ConsumerGroupDescription
public ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, Collection<MemberDescription> members, String partitionAssignor, GroupType type, GroupState groupState, Node coordinator, Set<AclOperation> authorizedOperations, Optional<Integer> groupEpoch, Optional<Integer> targetAssignmentEpoch)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
groupId
The id of the consumer group. -
isSimpleConsumerGroup
public boolean isSimpleConsumerGroup()If consumer group is simple or not. -
members
A list of the members of the consumer group. -
partitionAssignor
The consumer group partition assignor. -
type
The group type (or the protocol) of this consumer group. It defaults to Classic if not provided by the server. -
state
Deprecated.Since 4.0. UsegroupState()
instead.The consumer group state, or UNKNOWN if the state is too new for us to parse. -
groupState
The group state, or UNKNOWN if the state is too new for us to parse. -
coordinator
The consumer group coordinator, or null if the coordinator is not known. -
authorizedOperations
authorizedOperations for this group, or null if that information is not known. -
groupEpoch
The epoch of the consumer group. The optional is set to an integer if it is aGroupType.CONSUMER
group, and to empty if it is aGroupType.CLASSIC
group. -
targetAssignmentEpoch
The epoch of the target assignment. The optional is set to an integer if it is aGroupType.CONSUMER
group, and to empty if it is aGroupType.CLASSIC
group. -
toString
-