AbstractControlRequest¶
AbstractControlRequest is an extension of the AbstractRequest abstraction for controller requests that KafkaController uses to propage broker and partition state changes to brokers.
Contract¶
brokerEpoch¶
long brokerEpoch()
Used when:
KafkaApisis requested to handleLeaderAndIsrRequest, handleStopReplicaRequest, handleUpdateMetadataRequest
controllerEpoch¶
int controllerEpoch()
Used when:
KafkaApisis requested to handleStopReplicaRequestReplicaManageris requested to maybeUpdateMetadataCache, becomeLeaderOrFollowerZkMetadataCacheis requested toupdateMetadata
controllerId¶
int controllerId()
Used when:
KafkaApisis requested to handleStopReplicaRequestReplicaManageris requested to maybeUpdateMetadataCache, becomeLeaderOrFollowerZkMetadataCacheis requested toupdateMetadata
Implementations¶
- LeaderAndIsrRequest
StopReplicaRequestUpdateMetadataRequest
Creating Instance¶
AbstractControlRequest takes the following to be created:
-
ApiKeys - Version
Abstract Class
AbstractControlRequest is an abstract class and cannot be created directly. It is created indirectly for the concrete AbstractControlRequests.