Sha256: 68ca818af176243a3078f9970aedc316755fe2ce6390259d4e8a7497752620e7
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true module Karafka module Pro # This Karafka component is a Pro component. # All of the commercial components are present in the lib/karafka/pro directory of this # repository and their usage requires commercial license agreement. # # Karafka has also commercial-friendly license, commercial support and commercial components. # # By sending a pull request to the pro components, you are agreeing to transfer the copyright # of your code to Maciej Mensfeld. # Loader requires and loads all the pro components only when they are needed class Loader class << self # Loads all the pro components and configures them wherever it is expected # @param config [Dry::Configurable::Config] whole app config that we can alter with pro # components def setup(config) require_relative 'performance_tracker' require_relative 'active_job/dispatcher' require_relative 'active_job/job_options_contract' config.internal.active_job.dispatcher = ActiveJob::Dispatcher.new config.internal.active_job.job_options_contract = ActiveJob::JobOptionsContract.new # Monitor time needed to process each message from a single partition config.monitor.subscribe(PerformanceTracker.instance) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
karafka-2.0.0.beta1 | lib/karafka/pro/loader.rb |