lib/amqp/client.rb in amqp-0.9.10 vs lib/amqp/client.rb in amqp-1.0.0.pre1
- old
+ new
@@ -20,11 +20,11 @@
# @note This method is not part of the public API and may be removed in the future without any warning.
# @see AMQP.start
# @see AMQP.connect
# @api plugin
#
- # @see http://rubyamqp.info/articles/connecting_to_broker/ Connecting to The Broker documentation guide
+ # @see http://bit.ly/ks8MXK Connecting to The Broker documentation guide
def self.connect(connection_string_or_options = {}, options = {}, &block)
opts = case connection_string_or_options
when String then
parse_connection_uri(connection_string_or_options)
when Hash then
@@ -80,10 +80,10 @@
# @param [String] connection_string AMQP connection URI, à la JDBC connection string. For example: amqp://bus.megacorp.internal:5877.
# @return [Hash] Connection parameters (:username, :password, :vhost, :host, :port, :ssl)
#
# @raise [ArgumentError] When connection URI schema is not amqp or amqps, or the path contains multiple segments
#
- # @see http://rubyamqp.info/articles/connecting_to_broker/ Connecting to The Broker documentation guide
+ # @see http://bit.ly/ks8MXK Connecting to The Broker documentation guide
# @api public
def self.parse_connection_uri(connection_string)
AMQ::Client::Settings.parse_amqp_url(connection_string)
end
end # Client