Skip to content

Commit 15d8331

Browse files
author
Emile Joubert
committed
Update wikipages to reflect API changes
1 parent 836d963 commit 15d8331

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

docs/wikipages/data.ApiOverview.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,25 +185,22 @@ exchange and a queue, then binds them together.
185185

186186
@code java
187187
channel.ExchangeDeclare(exchangeName, ExchangeType.Direct);
188-
channel.QueueDeclare(queueName);
188+
channel.QueueDeclare(queueName, false, false, false, null);
189189
channel.QueueBind(queueName, exchangeName, routingKey, false, null);
190190

191191
This will actively declare the following objects:
192192

193193
# a non-durable, non-autodelete exchange of "direct" type
194194
# a non-durable, non-exclusive, non-autodelete queue
195195

196-
both of which can be customised by using additional parameters. Here
197-
neither of them have any special arguments.
198-
196+
The exchange can be customised by using additional parameters.
199197
The above code then binds the queue to the exchange with the given
200198
routing key.
201199

202-
Note that these Channel API methods are overloaded. These convenient
203-
short forms of ExchangeDeclare and QueueDeclare use sensible
204-
defaults. There are also longer forms with more parameters, to let you
205-
override these defaults as necessary, giving full control where
206-
needed.
200+
Note that many Channel API methods are overloaded. The convenient
201+
short form of ExchangeDeclare uses sensible defaults. There are
202+
also longer forms with more parameters, to let you override these
203+
defaults as necessary, giving full control where needed.
207204

208205
This "short version, long version" pattern is used throughout the API.
209206

docs/wikipages/data.MessagingPatterns.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ application wanted to retrieve all prices regarding IBM on queue
421421
@code java
422422
// "IModel ch" in scope.
423423
ch.ExchangeDeclare("prices", "topic");
424-
ch.QueueDeclare("MyApplicationQueue");
424+
ch.QueueDeclare("MyApplicationQueue", false, true, true, null);
425425
ch.QueueBind("MyApplicationQueue", "prices",
426426
"STOCK.IBM.#", false, null);
427427

0 commit comments

Comments
 (0)