Sha256: 72ff89568105af60357f7926aa4108e56f1006b202193e9bdbd9e71030467605

Contents?: true

Size: 656 Bytes

Versions: 15

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

module Karafka
  # Patches to external components
  module Patches
    # Rdkafka related patches
    module Rdkafka
      # Rdkafka::Consumer patches
      module Consumer
        # A method that allows us to get the native kafka producer name
        # @return [String] producer instance name
        # @note We need this to make sure that we allocate proper dispatched events only to
        #   callback listeners that should publish them
        def name
          ::Rdkafka::Bindings.rd_kafka_name(@native_kafka)
        end
      end
    end
  end
end

::Rdkafka::Consumer.include ::Karafka::Patches::Rdkafka::Consumer

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
karafka-2.0.0.rc4 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.rc3 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.rc2 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.rc1 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.beta5 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.beta4 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.beta3 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.beta2 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.beta1 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha6 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha5 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha4 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha3 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha2 lib/karafka/patches/rdkafka/consumer.rb
karafka-2.0.0.alpha1 lib/karafka/patches/rdkafka/consumer.rb