Example usage for com.rabbitmq.client.impl ChannelManager releaseChannelNumber

List of usage examples for com.rabbitmq.client.impl ChannelManager releaseChannelNumber

Introduction

In this page you can find the example usage for com.rabbitmq.client.impl ChannelManager releaseChannelNumber.

Prototype

public void releaseChannelNumber(ChannelN channel) 

Source Link

Document

Remove the channel from the channel map and free the number for re-use.

Usage

From source file:de.htwk_leipzig.bis.connection.handshake.clientRewrite.Copyright.java

License:Mozilla Public License

/**
 * Protected API - respond, in the driver thread, to a ShutdownSignal.
 * //w ww.  j  a  v a  2 s . c  o  m
 * @param channel
 *            the channel to disconnect
 */
public final void disconnectChannel(ChannelN channel) {
    ChannelManager cm = _channelManager;
    if (cm != null)
        cm.releaseChannelNumber(channel);
}