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
-
PartitionStates
byTopicPartition
(Map<TopicPartition, PartitionState>
) - Topic IDs
- Live leaders
LeaderAndIsrRequest
is created (using LeaderAndIsrRequest.Builder) when:
AbstractRequest
is requested to parse a request (with the LeaderAndIsr API key)LeaderAndIsrRequest
is requested to parse a byte bufferLeaderAndIsrRequest.Builder
is requested to build a LeaderAndIsrRequest (whenControllerBrokerRequestBatch
is requested to sendRequestsToBrokers)
LeaderAndIsrRequest.Builder¶
LeaderAndIsrRequest
comes with a concrete AbstractRequest.Builder factory object that can build a LeaderAndIsrRequest
.
LeaderAndIsrRequest.Builder
is used when:
AbstractControllerBrokerRequestBatch
is requested to send out LeaderAndIsr requests to leader and follower brokers