Sha256: f29382da573e05a585d66bf1a45dcd3127824e777d289352e25df2301d3487f8

Contents?: true

Size: 752 Bytes

Versions: 96

Compression:

Stored size: 752 Bytes

Contents

module ActionSubscriber
  module DefaultRouting
    def routes(route_settings)
      @routes ||= begin
        routes = []
        exchange_names.each do |exchange_name|
          subscribable_methods.each do |method_name|
            settings = {
              acknowledgements: acknowledge_messages?,
              action: method_name,
              durable: false,
              exchange: exchange_name,
              routing_key: routing_key_name_for_method(method_name),
              subscriber: self,
              queue: queue_name_for_method(method_name),
            }
            settings.merge!(route_settings)
            routes << ActionSubscriber::Route.new(settings)
          end
        end
        routes
      end
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
action_subscriber-5.3.3-java lib/action_subscriber/default_routing.rb
action_subscriber-5.3.3 lib/action_subscriber/default_routing.rb
action_subscriber-5.3.2-java lib/action_subscriber/default_routing.rb
action_subscriber-5.3.2 lib/action_subscriber/default_routing.rb
action_subscriber-5.3.1-java lib/action_subscriber/default_routing.rb
action_subscriber-5.3.1 lib/action_subscriber/default_routing.rb
action_subscriber-5.3.1.pre-java lib/action_subscriber/default_routing.rb
action_subscriber-5.3.1.pre lib/action_subscriber/default_routing.rb
action_subscriber-5.3.0-java lib/action_subscriber/default_routing.rb
action_subscriber-5.3.0 lib/action_subscriber/default_routing.rb
action_subscriber-5.2.4-java lib/action_subscriber/default_routing.rb
action_subscriber-5.2.4 lib/action_subscriber/default_routing.rb
action_subscriber-5.2.3-java lib/action_subscriber/default_routing.rb
action_subscriber-5.2.3 lib/action_subscriber/default_routing.rb
action_subscriber-5.2.2-java lib/action_subscriber/default_routing.rb
action_subscriber-5.2.2 lib/action_subscriber/default_routing.rb
action_subscriber-5.2.1-java lib/action_subscriber/default_routing.rb
action_subscriber-5.2.1 lib/action_subscriber/default_routing.rb
action_subscriber-5.2.0-java lib/action_subscriber/default_routing.rb
action_subscriber-5.2.0 lib/action_subscriber/default_routing.rb