Class: AMQP::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/jessica/amqp_client_connector.rb

Class Method Summary collapse

Class Method Details

.new(options = nil) ⇒ Object



46
47
48
49
50
# File 'lib/jessica/amqp_client_connector.rb', line 46

def self.new(options=nil)
  @options = AMQP::Client::Settings.configure(options || AMQP.settings)
  factory = options ? RabbitMQClient.factory(@options) : AMQP.factory() || AMQP.factory(RabbitMQClient.factory(@options))
  RabbitMQClient.new(:factory => factory)
end