Skip to content

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 by TopicPartition (Map<TopicPartition, PartitionState>)
  • Topic IDs
  • Live leaders

LeaderAndIsrRequest is created (using LeaderAndIsrRequest.Builder) when:

LeaderAndIsrRequest.Builder

LeaderAndIsrRequest comes with a concrete AbstractRequest.Builder factory object that can build a LeaderAndIsrRequest.

LeaderAndIsrRequest.Builder is used when: