Interface GroupSpec
public interface GroupSpec
The group metadata specifications required to compute the target assignment.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPartitionAssigned(Uuid topicId, int partitionId) memberAssignment(String memberId) Gets the current assignment of the member.memberSubscription(String memberId) Gets the member subscription specification for a member.
-
Method Details
-
memberIds
Collection<String> memberIds()- Returns:
- All the member Ids of the consumer group.
-
subscriptionType
SubscriptionType subscriptionType()- Returns:
- The group's subscription type.
-
isPartitionAssigned
- Returns:
- True, if the partition is currently assigned to a member. False, otherwise.
-
memberSubscription
Gets the member subscription specification for a member.- Parameters:
memberId- The member Id.- Returns:
- The member's subscription metadata.
- Throws:
IllegalArgumentException- If the member Id isn't found.
-
memberAssignment
Gets the current assignment of the member.- Parameters:
memberId- The member Id.- Returns:
- The member's assignment or an empty assignment if the member does not have one.
-