LeaderAndIsrRequest¶
LeaderAndIsrRequest is a controller request with LeaderAndIsr API key and the following properties:
- Version
- Controller ID (broker.id of the controller broker)
- Controller Epoch
- Broker Epoch
-
PartitionStatesbyTopicPartition(Map<TopicPartition, PartitionState>) - Topic IDs
- Live leaders
LeaderAndIsrRequest is created (using LeaderAndIsrRequest.Builder) when:
AbstractRequestis requested to parse a request (with the LeaderAndIsr API key)LeaderAndIsrRequestis requested to parse a byte bufferLeaderAndIsrRequest.Builderis requested to build a LeaderAndIsrRequest (whenControllerBrokerRequestBatchis requested to sendRequestsToBrokers)
LeaderAndIsrRequest.Builder¶
LeaderAndIsrRequest comes with a concrete AbstractRequest.Builder factory object that can build a LeaderAndIsrRequest.
LeaderAndIsrRequest.Builder is used when:
AbstractControllerBrokerRequestBatchis requested to send out LeaderAndIsr requests to leader and follower brokers