com.rabbitmq.client.impl
Class ChannelManager

java.lang.Object
  extended by com.rabbitmq.client.impl.ChannelManager

public class ChannelManager
extends java.lang.Object

Manages a set of channels, indexed by channel number.


Field Summary
 int _channelMax
          Maximum number of channels available on this connection.
 
Constructor Summary
ChannelManager()
           
 
Method Summary
 int allocateChannelNumber(int maxChannels)
           
 ChannelN createChannel(AMQConnection connection)
           
 ChannelN createChannel(AMQConnection connection, int channelNumber)
           
 void disconnectChannel(int channelNumber)
           
 ChannelN getChannel(int channelNumber)
          Public API - Looks up an existing channel associated with this connection.
 int getChannelMax()
           
 void handleSignal(ShutdownSignalException signal)
           
 void setChannelMax(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_channelMax

public int _channelMax
Maximum number of channels available on this connection.

Constructor Detail

ChannelManager

public ChannelManager()
Method Detail

getChannelMax

public int getChannelMax()

setChannelMax

public void setChannelMax(int value)

getChannel

public ChannelN getChannel(int channelNumber)
Public API - Looks up an existing channel associated with this connection.

Parameters:
channelNumber - the number of the required channel
Returns:
the relevant channel descriptor

handleSignal

public void handleSignal(ShutdownSignalException signal)

createChannel

public ChannelN createChannel(AMQConnection connection)
                       throws java.io.IOException
Throws:
java.io.IOException

createChannel

public ChannelN createChannel(AMQConnection connection,
                              int channelNumber)
                       throws java.io.IOException
Throws:
java.io.IOException

allocateChannelNumber

public int allocateChannelNumber(int maxChannels)

disconnectChannel

public void disconnectChannel(int channelNumber)