LeaderAndIsrRequest build(short version)
LeaderAndIsrRequest
LeaderAndIsrRequest
is a controller request with LeaderAndIsr API key and the following properties:
-
AbstractRequest
is requested to parse a request (with the LeaderAndIsr API key) -
LeaderAndIsrRequest
is requested to parse a byte buffer -
LeaderAndIsrRequest.Builder
is requested to build a LeaderAndIsrRequest (whenControllerBrokerRequestBatch
is requested to sendRequestsToBrokers)
LeaderAndIsrRequest.Builder
Factory Object
LeaderAndIsrRequest
comes with a concrete AbstractRequest.Builder factory object that can build a LeaderAndIsrRequest.
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
|