List of usage examples for com.rabbitmq.client Connection abort
void abort(int closeCode, String closeMessage);
From source file:org.ballerinalang.messaging.rabbitmq.util.ConnectionUtils.java
License:Open Source License
/** * Closes the connection./*from w w w . ja va 2 s. c om*/ * * @param connection RabbitMQ Connection object. */ private static void abortConnection(Connection connection, int closeCode, String closeMessage) { connection.abort(closeCode, closeMessage); }