List of usage examples for com.rabbitmq.client Channel abort
void abort(int closeCode, String closeMessage) throws IOException;
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); }