We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3919ce2 + ca203ee commit c49f714Copy full SHA for c49f714
src/main/java/com/rabbitmq/client/Channel.java
@@ -54,7 +54,7 @@
54
* @see <a href="http://www.rabbitmq.com/getstarted.html">RabbitMQ tutorials</a>
55
* @see <a href="http://www.rabbitmq.com/api-guide.html">RabbitMQ Java Client User Guide</a>
56
*/
57
-public interface Channel extends ShutdownNotifier {
+public interface Channel extends ShutdownNotifier, AutoCloseable {
58
/**
59
* Retrieve this channel's channel number.
60
* @return the channel number
@@ -73,6 +73,7 @@ public interface Channel extends ShutdownNotifier {
73
*
74
* @throws java.io.IOException if an error is encountered
75
76
+ @Override
77
void close() throws IOException, TimeoutException;
78
79
0 commit comments