List of usage examples for com.rabbitmq.client Connection close
void close(int closeCode, String closeMessage) throws IOException;
From source file:org.ballerinalang.messaging.rabbitmq.util.ConnectionUtils.java
License:Open Source License
/** * Closes the connection./*from w w w .j a v a2 s . c o m*/ * * @param connection RabbitMQ Connection object. * @throws IOException If an I/O problem is encountered. */ private static void close(Connection connection, int closeCode, String closeMessage) throws IOException { connection.close(closeCode, closeMessage); }