List of usage examples for com.rabbitmq.client Connection abort
void abort(int closeCode, String closeMessage, int timeout);
From source file:org.ballerinalang.messaging.rabbitmq.util.ConnectionUtils.java
License:Open Source License
/** * Closes the connection.//from w ww .j a v a 2 s .co m * * @param connection RabbitMQ Connection object. * @param timeout Timeout (in milliseconds) for completing all the close-related operations, use -1 for infinity. */ private static void abortConnection(Connection connection, int closeCode, String closeMessage, int timeout) { connection.abort(closeCode, closeMessage, timeout); }