public interface ReassignmentHandler
The client library will not acknowledge the assignment until handleReassignment returns. The assigning backend will not assign any of the partitions in `before` to another server unless the assignment is acknowledged, or a client takes too long to acknowledged (currently 30 seconds from the time the assignment is sent from server's point of view).
Because of the above, as long as reassignment handling is processed quickly, it can be used to abort outstanding operations on partitions which are being assigned away from this client.
| Modifier and Type | Method and Description |
|---|---|
void |
handleReassignment(Set<Partition> before,
Set<Partition> after)
Called with the previous and new assignment delivered to this client on an assignment change.
|
void handleReassignment(Set<Partition> before, Set<Partition> after)
handleReassignment will only be called after no new messages will be delivered for the partition.
Acks or nacks on messages from partitions being assigned away will have no effect.
before - the previous assignmentafter - the new assignmentCopyright © 2021 Google LLC. All rights reserved.