Sha256: c4dfdc1b2ba8fab67f7988efb98ac8f0b932d1f98bd21771af929c469ac20a23

Contents?: true

Size: 698 Bytes

Versions: 9

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

# :reek:InstanceVariableAssumption

module RubyRabbitmqJanus
  module Rabbit
    module Listener
      # Listener to admin queue
      class FromAdmin < From
        private

        def subscribe_queue
          reply = @rabbit.queue(Tools::Config.instance.queue_admin_from)
          @rabbit.prefetch(1)
          reply.bind(binding).subscribe(opts_subs) do |info, prop, payload|
            info_subscribe(info, prop, payload)
            synchronize_response(info, payload)
          end
        rescue => exception
          raise RubyRabbitmqJanus::Errors::Rabbit::Listener::From::ListenEvents,
                exception
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.6.0.pre.244 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.240 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.239 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.238 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.233 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.229 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.228 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.227 lib/rrj/rabbit/listener/from_admin.rb
ruby_rabbitmq_janus-2.6.0.pre.226 lib/rrj/rabbit/listener/from_admin.rb