Module | AMQ::Client::Async::Adapter::ClassMethods |
In: |
lib/amq/client/async/adapter.rb
|
Can be overriden by higher-level libraries like amqp gem or bunny. Defaults to AMQ::Client::PossibleAuthenticationFailure.
@return [Class]
Establishes connection to AMQ broker and returns it. New connection object is yielded to the block if it is given.
@example Specifying adapter via the :adapter option
AMQ::Client::Adapter.connect(:adapter => "socket")
@example Specifying using custom adapter class
AMQ::Client::SocketClient.connect
@param [Hash] Connection parameters, including :adapter to use. @api public
Can be overriden by higher-level libraries like amqp gem or bunny. Defaults to AMQ::Client::TCPConnectionFailed.
@return [Class]