File tree 2 files changed +9
-0
lines changed
main/java/com/rabbitmq/stream
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,13 @@ include::{test-examples}/ProducerUsage.java[tag=producer-creation]
328
328
Consider a `Producer` instance like a long-lived object, do not create one
329
329
to send just one message.
330
330
331
+
332
+ [NOTE]
333
+ .Producer thread safety
334
+ ====
335
+ Producer instances are thread-safe.
336
+ ====
337
+
331
338
Internally, the `Environment` will query the broker to find out about
332
339
the topology of the stream and will create or re-use a connection to
333
340
publish to the leader node of the stream.
Original file line number Diff line number Diff line change 18
18
*
19
19
* <p>Instances are created and configured with a {@link ProducerBuilder}.
20
20
*
21
+ * Implementations are expected to be thread-safe, RabbitMQ Streams' are.
22
+ *
21
23
* @see ProducerBuilder
22
24
* @see Environment#producerBuilder()
23
25
*/
You can’t perform that action at this time.
0 commit comments