View Source KlifeProtocol.Messages.BeginQuorumEpoch (Klife Protocol v0.5.0)

Kafka protocol BeginQuorumEpoch 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.

Link to this function

deserialize_response(data, version, with_header? \\ true)

View Source

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+)

Returns the current max supported version of this message.

Returns the current min supported version of this message.

Link to this function

serialize_request(map, version)

View Source

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+)

      • leader_id: The ID of the newly elected leader (int32 | versions 0+)

      • leader_epoch: The epoch of the newly elected leader (int32 | versions 0+)