Sha256: ef2b1da289f175c36c372ae5ca3dd969821b33681e3ae2e031f758c50fa211b4

Contents?: true

Size: 423 Bytes

Versions: 56

Compression:

Stored size: 423 Bytes

Contents

module Kafka
  module Protocol
    class ConsumerGroupProtocol
      def initialize(version: 0, topics:, user_data: nil)
        @version = version
        @topics = topics
        @user_data = user_data
      end

      def encode(encoder)
        encoder.write_int16(@version)
        encoder.write_array(@topics) {|topic| encoder.write_string(topic) }
        encoder.write_bytes(@user_data)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
ruby-kafka-0.5.0.beta3 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.5.0.beta2 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.4.3 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.4.2 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.4.1 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.4.0 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.4.0.beta1 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.18.beta2 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.18.beta1 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.17 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.16 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.16.beta2 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.16.beta1 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.15 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.15.beta3 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.15.beta2 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.15.beta1 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.14 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.13.beta4 lib/kafka/protocol/consumer_group_protocol.rb
ruby-kafka-0.3.13.beta3 lib/kafka/protocol/consumer_group_protocol.rb