View Source KlifeProtocol.Messages.Vote (Klife Protocol v0.7.0)
Kafka protocol Vote message
Request versions summary:
Response versions summary:
Link to this section Summary
Functions
Returns the message api key number.
Receive a binary in the kafka wire format and deserialize it into a map.
Returns the current max supported version of this message.
Returns the current min supported version of this message.
Receives a map and serialize it to kafka wire format of the given version.
Link to this section Functions
Returns the message api key number.
Receive a binary in the kafka wire format and deserialize it into a map.
Response content fields:
error_code: The top level error code. (int16 | versions 0+)
topics: ([]TopicData | versions 0+)
topic_name: The topic name. (string | versions 0+)
partitions: ([]PartitionData | versions 0+)
partition_index: The partition index. (int32 | versions 0+)
error_code: (int16 | versions 0+)
leader_id: The ID of the current leader or -1 if the leader is unknown. (int32 | versions 0+)
leader_epoch: The latest known leader epoch (int32 | versions 0+)
vote_granted: True if the vote was granted and false otherwise (bool | versions 0+)
Returns the current max supported version of this message.
Returns the current min supported version of this message.
Receives a map and serialize it to kafka wire format of the given version.
Input content fields:
cluster_id: (string | versions 0+)
topics: ([]TopicData | versions 0+)
topic_name: The topic name. (string | versions 0+)
partitions: ([]PartitionData | versions 0+)
partition_index: The partition index. (int32 | versions 0+)
candidate_epoch: The bumped epoch of the candidate sending the request (int32 | versions 0+)
candidate_id: The ID of the voter sending the request (int32 | versions 0+)
last_offset_epoch: The epoch of the last record written to the metadata log (int32 | versions 0+)
last_offset: The offset of the last record written to the metadata log (int64 | versions 0+)