LeaderAndIsrRequest build(short version)
LeaderAndIsrRequest
LeaderAndIsrRequest is a controller request with LeaderAndIsr API key and the following properties:
-
AbstractRequestis requested to parse a request (with the LeaderAndIsr API key) -
LeaderAndIsrRequestis requested to parse a byte buffer -
LeaderAndIsrRequest.Builderis requested to build a LeaderAndIsrRequest (whenControllerBrokerRequestBatchis 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
|