Sha256: a86e03eba101531b12c2e25dfa213902399389c2eb51d268418b811a5037483f

Contents?: true

Size: 458 Bytes

Versions: 33

Compression:

Stored size: 458 Bytes

Contents

module Kafka
  module Protocol
    class TopicMetadataRequest

      # A request for cluster metadata.
      #
      # @param topics [Array<String>]
      def initialize(topics: [])
        @topics = topics
      end

      def api_key
        3
      end

      def response_class
        Protocol::MetadataResponse
      end

      def encode(encoder)
        encoder.write_array(@topics) {|topic| encoder.write_string(topic) }
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ruby-kafka-0.4.0.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.18.beta2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.18.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.17 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.16 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.16.beta2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.16.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.15 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.15.beta3 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.15.beta2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.15.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.14 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.13.beta4 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.13.beta3 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.13.beta2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.13.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.12 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.11 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.10 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.3.9 lib/kafka/protocol/topic_metadata_request.rb