Class: Euston::RabbitMq::HandlerBinder

Inherits:
Object
  • Object
show all
Includes:
Exchanges, Queues
Defined in:
lib/euston-rabbitmq/euston/handler_binder.rb

Direct Known Subclasses

CommandHandlerBinder, EventHandlerBinder

Instance Method Summary collapse

Methods included from Exchanges

#default_exchange_options, #default_publish_options, #get_exchange

Methods included from Queues

#default_queue_options, #get_queue

Constructor Details

#initialize(channel, references, logger = Euston::NullLogger.instance) ⇒ HandlerBinder

Returns a new instance of HandlerBinder.



7
8
9
10
11
# File 'lib/euston-rabbitmq/euston/handler_binder.rb', line 7

def initialize channel, references, logger = Euston::NullLogger.instance
  @channel = channel
  @references = references
  @log = logger
end

Instance Method Details

#ensure_bindings_existObject



13
14
15
16
17
# File 'lib/euston-rabbitmq/euston/handler_binder.rb', line 13

def ensure_bindings_exist
  @references.each do |reference|
    ensure_bindings_exist_for_reference reference
  end
end