class Kafka::Protocol::MetadataResponse::TopicMetadata

Attributes

partitions[R]

@return [Array<PartitionMetadata>] the partitions in the topic.

topic_error_code[R]
topic_name[R]

@return [String] the name of the topic

Public Class Methods

new(topic_error_code: 0, topic_name:, partitions:) click to toggle source
# File lib/kafka/protocol/metadata_response.rb, line 59
def initialize(topic_error_code: 0, topic_name:, partitions:)
  @topic_error_code = topic_error_code
  @topic_name = topic_name
  @partitions = partitions
end