Sha256: c7be202368f4209d3d24b3ed18096445bf6de91ce51d0ebb877cd0b142309baf

Contents?: true

Size: 687 Bytes

Versions: 33

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

module Kafka
  module Protocol
    class InitProducerIDResponse
      attr_reader :error_code, :producer_id, :producer_epoch

      def initialize(error_code:, producer_id:, producer_epoch:)
        @error_code = error_code
        @producer_id = producer_id
        @producer_epoch = producer_epoch
      end

      def self.decode(decoder)
        _throttle_time_ms = decoder.int32
        error_code = decoder.int16
        producer_id = decoder.int64
        producer_epoch = decoder.int16
        new(
          error_code: error_code,
          producer_id: producer_id,
          producer_epoch: producer_epoch
        )
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
ruby-kafka-0.7.6.beta2 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.6.beta1 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.5 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.5.beta1 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.4 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.3 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.2 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1.debugcorruption2 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1.messagecorruptiondebug lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1.beta2 lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1.possible.pre.fetch.pre.fix lib/kafka/protocol/init_producer_id_response.rb
ruby-kafka-0.7.1.beta1 lib/kafka/protocol/init_producer_id_response.rb