Skip to content

Commit c16bdd5

Browse files
author
Tim Watson
committed
clarify (lack of) channel thread safety when using confirms
1 parent 0aebcb7 commit c16bdd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
* As such, applications may prefer using a {@link Channel} per thread
5353
* instead of sharing the same <code>Channel</code> across multiple threads.
5454
*
55+
* An <b>important caveat</b> to this is that confirms are <b>not</b> handled
56+
* properly when a {@link Channel} is shared between multiple threads. In that
57+
* scenario, it is therefore important to ensure that the {@link Channel}
58+
* instance is <b>not</b> accessed concurrently by multiple threads.
59+
*
5560
*/
5661

5762
public interface Channel extends ShutdownNotifier {

0 commit comments

Comments
 (0)