Example usage for com.rabbitmq.client Channel abort

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

Introduction

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

Prototype

void abort(int closeCode, String closeMessage) throws IOException;

Source Link

Document

Abort this channel.

Usage

From source file:org.ballerinalang.messaging.rabbitmq.util.ChannelUtils.java

License:Open Source License

/**
 * Aborts the channel./*from www . j  av a2  s .  com*/
 *
 * @param channel      RabbitMQ Channel object.
 * @param closeCode    The close code (See under "Reply Codes" in the AMQP specification).
 * @param closeMessage A message indicating the reason for closing the connection.
 * @throws IOException If an I/O problem is encountered.
 */
public static void abort(Channel channel, int closeCode, String closeMessage) throws IOException {
    channel.abort(closeCode, closeMessage);
}