LeaderAndIsrRequest

LeaderAndIsrRequest is a controller request with LeaderAndIsr API key and the following properties:

  • Controller ID

  • Controller Epoch

  • Broker Epoch

  • PartitionStates by TopicPartition (Map<TopicPartition, PartitionState>)

  • Live leaders (brokers with leaders)

  • Version

LeaderAndIsrRequest is created (via build factory method) when:

LeaderAndIsrRequest.Builder Factory Object

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

LeaderAndIsrRequest build(short version)

LeaderAndIsrRequest.Builder is used exclusively when AbstractControllerBrokerRequestBatch is requested to send LeaderAndIsr requests out to all brokers.

Creating LeaderAndIsrRequest from Byte Buffer — parse Factory Method

LeaderAndIsrRequest parse(
  ByteBuffer buffer,
  short version)

parse simply creates a LeaderAndIsrRequest.

Note
parse is used when…​FIXME

results matching ""

    No results matching ""