com.rabbitmq.client.impl
Class ChannelManager
java.lang.Object
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 channel number available on this connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_channelMax
public final int _channelMax
- Maximum channel number available on this connection.
ChannelManager
public ChannelManager(int channelMax)
getChannelMax
public int getChannelMax()
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
- Throws:
UnknownChannelException
- if there is no Channel associated with the
required channel number.
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
disconnectChannel
public void disconnectChannel(ChannelN channel)
- Remove the argument channel from the channel map.
This method must be safe to call multiple times on the same channel. If
it is not then things go badly wrong.