Sha256: 94ae14428fbed85055d61a30b61fdbebd37c7f5309f5dcd3c582bc216d094880

Contents?: true

Size: 539 Bytes

Versions: 40

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

require "kafka/protocol/member_assignment"

module Kafka
  module Protocol
    class SyncGroupResponse
      attr_reader :error_code, :member_assignment

      def initialize(error_code:, member_assignment:)
        @error_code = error_code
        @member_assignment = member_assignment
      end

      def self.decode(decoder)
        new(
          error_code: decoder.int16,
          member_assignment: MemberAssignment.decode(Decoder.from_string(decoder.bytes)),
        )
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
ruby-kafka-1.3.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-1.2.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-1.1.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-1.1.0.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-1.0.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.10 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.9 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.8 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.7 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-custom-0.7.7.26 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.6 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.6.beta2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.6.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.5 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.5.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.4 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.3 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.1.debugcorruption2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.7.1.messagecorruptiondebug lib/kafka/protocol/sync_group_response.rb