ElectPreferredLeadersRequest
is a message request that is sent out from KafkaAdminClient when requested to elect preferred partition leaders (e.g. using kafka-leader-election.sh shell script) to the controller broker.
ElectPreferredLeadersRequest
uses ElectPreferredLeaders API key and the following properties:
ElectPreferredLeadersRequest
is created when:
-
AbstractRequest
is requested to parse a request (with the ElectPreferredLeaders API key) -
ElectPreferredLeadersRequest
is requested to parse a byte buffer -
ElectPreferredLeadersRequest.Builder
is requested to build a ElectPreferredLeadersRequest
ElectPreferredLeadersRequestData
is an API message with the following properties:
ElectPreferredLeadersRequest.Builder
is a request builder to build a ElectPreferredLeadersRequest
.
ElectPreferredLeadersRequest build(short version)
ElectPreferredLeadersRequestData toRequestData(
Collection<TopicPartition> partitions,
int timeoutMs)
toRequestData
…FIXME
Note
|
toRequestData is used when…FIXME
|
Map<TopicPartition, ApiError> fromResponseData(
ElectPreferredLeadersResponseData data)
fromResponseData
…FIXME
Note
|
fromResponseData is used when…FIXME
|