Skip to content

Commit 09b6261

Browse files
committed
Fix typos and English errors in documentation
1 parent bdfc899 commit 09b6261

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/docs/asciidoc/usage.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This documentation covers only the advanced usage of the library; a https://www.
1414

1515
=== Connection Settings at the Environment Level
1616

17-
Connection settings (URI, credentials, etc) can be set at the environment level.
17+
Connection settings (URI, credentials, etc.) can be set at the environment level.
1818
They will then be re-used for each connection.
1919
It is possible to override the environment connection settings for a given connection:
2020

@@ -167,7 +167,7 @@ rabbitmq_amqp_publishers 1.0
167167

168168
=== Request/Response
169169

170-
Request/response with RabbitMQ consists in a requester sending a request message and a responder replying with a response message.
170+
Request/response with RabbitMQ consists of a requester sending a request message and a responder replying with a response message.
171171
Both the requester and responder are _client applications_ and the messages flow through the broker.
172172
The requester must send a reply-to queue address with the request.
173173
The responder uses this reply-to queue address to send the response.
@@ -190,7 +190,7 @@ include::{test-examples}/RequestResponseApi.java[tag=responder-creation]
190190
<3> Define the processing logic
191191
<4> Create the reply message
192192

193-
Note the responder does not create the queue it waits requests on.
193+
Note that the responder does not create the queue it waits for requests on.
194194
It must be created beforehand.
195195

196196
Here is how to create a requester:
@@ -251,13 +251,13 @@ include::{test-examples}/RequestResponseApi.java[tag=is-requester-alive]
251251
--------
252252
<1> Check if the requester is still connected
253253

254-
The requester can check the requester at any time - when a request comes in or even during a long processing - and react accordingly by stopping the processing.
254+
The responder can check the requester at any time - when a request comes in or even during a long processing - and react accordingly by stopping the processing.
255255
Note each call to `Context#isRequesterAlive(Message)` implies a request to the broker.
256256

257257
Let's see how to customize some of the request/response support mechanics.
258258
Imagine the request `message-id` property is a critical piece of information and we do not want to use it as the correlation ID.
259259
The request can use the `correlation-id` property and the responder just has to extract the correlation ID from this property (instead of the `message-id` property by default).
260-
Let's also use a random UUID for the correlation ID generation (avoids doing this in production: this is OK in terms of uniqueness but not optimal in terms of performance because randomness is not cheap).
260+
Let's also use a random UUID for the correlation ID generation (avoid doing this in production: this is OK in terms of uniqueness but not optimal in terms of performance because randomness is not cheap).
261261

262262
Here is how to declare the requester:
263263

0 commit comments

Comments
 (0)