GH-1099: Fix Javadocs for Publisher Connection

Resolves https://github.com/spring-projects/spring-amqp/issues/1099

**cherry-pick to 2.3.x, 2.2.x**
This commit is contained in:
Gary Russell
2021-11-10 11:28:33 -05:00
committed by Artem Bilan
parent 1f6225b73e
commit 430f0bf07d

View File

@@ -823,10 +823,12 @@ public class RabbitTemplate extends RabbitAccessor // NOSONAR type line count
}
/**
* To avoid deadlocked connections, it is generally recommended to use
* a separate connection for publishers and consumers (except when a publisher
* is participating in a consumer transaction). Default 'false'; will change
* to 'true' in 2.1.
* To avoid deadlocked connections, it is generally recommended to use a separate
* connection for publishers and consumers (except when a publisher is participating
* in a consumer transaction). Default 'false'. When setting this to true, be careful
* in that a {@link RabbitAdmin} that uses this template will declare queues on the
* publisher connection; this may not be what you expect, especially with exclusive
* queues that might be consumed in this application.
* @param usePublisherConnection true to use a publisher connection.
* @since 2.0.2
*/