Skip to content

Commit

Permalink
Correct langohr.exchange documentation a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Oct 19, 2011
1 parent 941a380 commit a322bca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/langohr/exchange.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
(defn declare
"Declares an exchange using exchange.declare AMQP method.
By default creates non-autodelete non-durable exchange.
By default declares non-autodeleted non-durable exchanges.
Core exhange types:
Default Exhange types:
- direct: 1:1 form of communication. Routing key defines how broker will direct message from producer to the consumer.
- fanout: 1:N message delivery pattern. No routing keys are involved. You bind a queue to exchange and messages sent to that exchange are delivered to all bound queues.
- topic: used for 1:n and n:m communication. In this case, routing key is defined as a pattern. For example \"langohr.#\" will match \"langohr.samples\" and \"langohr.smamples\" or \"#.samples\" will match \"langor.samples\" and \"shmangor.samples\".
Expand Down

0 comments on commit a322bca

Please sign in to comment.