Sha256: f21f1858c4a653bec2e3b5c001b256c4cdac955d7c2f72d17395149a3d53bc62

Contents?: true

Size: 398 Bytes

Versions: 9

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require_relative "consumer_mapper/base"

module Sbmt
  module KafkaConsumer
    module Routing
      # karafka v2 (before 2.4) consumer group name mapper
      class KarafkaV2ConsumerMapper < ConsumerMapper::Base
        def call(raw_consumer_group_name)
          "#{Karafka::App.config.client_id}_#{raw_consumer_group_name}"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sbmt-kafka_consumer-3.4.0 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.3.2 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.3.1 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.3.0 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.2.2 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.2.1 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.2.0 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.1.0 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb
sbmt-kafka_consumer-3.0.0 lib/sbmt/kafka_consumer/routing/karafka_v2_consumer_mapper.rb