Package org.apache.kafka.clients.admin
Class MemberDescription
java.lang.Object
org.apache.kafka.clients.admin.MemberDescription
A detailed description of a single group member in the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionMemberDescription
(String memberId, String clientId, String host, MemberAssignment assignment) Deprecated.Since 4.0.MemberDescription
(String memberId, Optional<String> groupInstanceId, String clientId, String host, MemberAssignment assignment) Deprecated.Since 4.0.MemberDescription
(String memberId, Optional<String> groupInstanceId, String clientId, String host, MemberAssignment assignment, Optional<MemberAssignment> targetAssignment) Deprecated.Since 4.0.MemberDescription
(String memberId, Optional<String> groupInstanceId, String clientId, String host, MemberAssignment assignment, Optional<MemberAssignment> targetAssignment, Optional<Integer> memberEpoch, Optional<Boolean> upgraded) -
Method Summary
Modifier and TypeMethodDescriptionThe assignment of the group member.clientId()
The client id of the group member.The consumer id of the group member.boolean
The instance id of the group member.int
hashCode()
host()
The host where the group member is running.The epoch of the group member.The target assignment of the member.toString()
upgraded()
The flag indicating whether a member within aGroupType.CONSUMER
group uses theGroupType.CONSUMER
protocol.
-
Constructor Details
-
MemberDescription
-
MemberDescription
@Deprecated public MemberDescription(String memberId, Optional<String> groupInstanceId, String clientId, String host, MemberAssignment assignment, Optional<MemberAssignment> targetAssignment) Deprecated. -
MemberDescription
@Deprecated public MemberDescription(String memberId, Optional<String> groupInstanceId, String clientId, String host, MemberAssignment assignment) Deprecated. -
MemberDescription
@Deprecated public MemberDescription(String memberId, String clientId, String host, MemberAssignment assignment) Deprecated.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
consumerId
The consumer id of the group member. -
groupInstanceId
The instance id of the group member. -
clientId
The client id of the group member. -
host
The host where the group member is running. -
assignment
The assignment of the group member. Provided for both classic group and consumer group. -
targetAssignment
The target assignment of the member. Provided only for consumer group. -
memberEpoch
The epoch of the group member. The optional is set to an integer if the member is in aGroupType.CONSUMER
group, and to empty if it is in aGroupType.CLASSIC
group. -
upgraded
The flag indicating whether a member within aGroupType.CONSUMER
group uses theGroupType.CONSUMER
protocol. The optional is set to true if it does, to false if it does not, and to empty if it is unknown or if the group is aGroupType.CLASSIC
group. -
toString
-