Example usage for com.rabbitmq.client Connection abort

List of usage examples for com.rabbitmq.client Connection abort

Introduction

In this page you can find the example usage for com.rabbitmq.client Connection abort.

Prototype

void abort(int closeCode, String closeMessage);

Source Link

Document

Abort this connection and all its channels.

Usage

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);
}