Skip to content

Commit

Permalink
Added isOpen method
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard93 committed Nov 14, 2018
1 parent 8abe915 commit a086d29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/isc/rabbitmq/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ private GetResponse readMessage(String[] msg) throws IOException {

}

public Boolean isOpen()
{
return _connection !=null ? _connection.isOpen() : false;
}

public void close()throws Exception {
_channel.close();
_connection.close();
Expand Down

0 comments on commit a086d29

Please sign in to comment.