@@ -185,25 +185,22 @@ exchange and a queue, then binds them together.
185
185
186
186
@code java
187
187
channel.ExchangeDeclare(exchangeName, ExchangeType.Direct);
188
- channel.QueueDeclare(queueName);
188
+ channel.QueueDeclare(queueName, false, false, false, null );
189
189
channel.QueueBind(queueName, exchangeName, routingKey, false, null);
190
190
191
191
This will actively declare the following objects:
192
192
193
193
# a non-durable, non-autodelete exchange of "direct" type
194
194
# a non-durable, non-exclusive, non-autodelete queue
195
195
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.
199
197
The above code then binds the queue to the exchange with the given
200
198
routing key.
201
199
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.
207
204
208
205
This "short version, long version" pattern is used throughout the API.
209
206
0 commit comments