Skip to content

Commit a086d29

Browse files
committed
Added isOpen method
1 parent 8abe915 commit a086d29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/isc/rabbitmq/API.java

+5
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ private GetResponse readMessage(String[] msg) throws IOException {
148148

149149
}
150150

151+
public Boolean isOpen()
152+
{
153+
return _connection !=null ? _connection.isOpen() : false;
154+
}
155+
151156
public void close()throws Exception {
152157
_channel.close();
153158
_connection.close();

0 commit comments

Comments
 (0)