Class ConsumerPartitionAssignor.GroupAssignment
java.lang.Object
org.apache.kafka.clients.consumer.ConsumerPartitionAssignor.GroupAssignment
- Enclosing interface:
ConsumerPartitionAssignor
Represents the partition assignments for all members in a consumer group.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupAssignment(Map<String, ConsumerPartitionAssignor.Assignment> assignments) Constructs a group assignment with member assignments. -
Method Summary
Modifier and TypeMethodDescriptionReturns the partition assignments for all members in the group.toString()
-
Constructor Details
-
GroupAssignment
Constructs a group assignment with member assignments.- Parameters:
assignments- A map from member ID to their partition assignment
-
-
Method Details
-
groupAssignment
Returns the partition assignments for all members in the group.- Returns:
- A map from member ID to their partition assignment
-
toString
-