Skip to content

Commit

Permalink
Mention RabbitMQ extensions [to AMQP 0.9.1] support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Apr 16, 2011
1 parent d7fe159 commit 67c476a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .yardopts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
--protected
--markup="textile" lib/**/*.rb
-
LICENSE
LICENSE
docs/*.textile
32 changes: 32 additions & 0 deletions docs/VendorSpecificExtensions.textile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
h1. Vendor-specific AMQP extensions support in amqp gem

h2. RabbitMQ extensions

h3. Supported extensions

AMQP gem supports two "RabbitMQ extensions to AMQP 0.9.1":

* "Publisher confirmations":http://www.rabbitmq.com/extensions.html#confirms (confirm.* class)
* "Negative acknowledgements":http://www.rabbitmq.com/extensions.html#negative-acknowledgements (basic.nack)

h3. Enabling RabbitMQ extensions

If you are using RabbitMQ as AMQP broker and want to use these extensions, simply replace

<pre>require "amqp"</pre>

with

<pre>
require "amqp"
require "amqp/extensions/rabbitmq"
</pre>

h3. Example of using publisher confirmations

<script src="https://gist.github.com/923599.js?file=rabbitmq_publisher_confirmations_with_amqp_gem_0.8.0.rb"></script>


h3. Documentation

RabbitMQ extensions documentation is part of "amq-client gem documentation":http://rubydoc.info/github/ruby-amqp/amq-client/master/frames
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
puts "Publishing message ##{i}"
x.publish("Message ##{i}")
end
end
end
end

show_stopper = Proc.new {
Expand Down
6 changes: 6 additions & 0 deletions lib/amqp/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ module AMQP
# with other channels, the available bandwidth being shared between the concurrent activities.
#
#
# h2. RabbitMQ extensions.
#
# AMQP gem supports several RabbitMQ extensions taht extend Channel functionality.
# Learn more in {file:docs/VendorSpecificExtensions.textile}
#
#
# h2. Key methods
#
# Key methods of Channel class are
Expand Down
6 changes: 6 additions & 0 deletions lib/amqp/exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ module AMQP
# Note that *only durable queues can be bound to durable exchanges*.
#
#
# h2. RabbitMQ extensions.
#
# AMQP gem supports several RabbitMQ extensions taht extend Exchange functionality.
# Learn more in {file:docs/VendorSpecificExtensions.textile}
#
#
# h2. Key methods
#
# Key methods of Exchange class are
Expand Down

0 comments on commit 67c476a

Please sign in to comment.