Example usage for com.rabbitmq.client Connection close

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

Introduction

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

Prototype

void close(int closeCode, String closeMessage, int timeout) throws IOException;

Source Link

Document

Close 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 ww  w .j a  v a  2 s .  co  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, int timeout)
        throws IOException {
    connection.close(closeCode, closeMessage, timeout);
}