public class ChannelManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
_channelMax
Maximum channel number available on this connection.
|
Constructor and Description |
---|
ChannelManager(int channelMax) |
Modifier and Type | Method and Description |
---|---|
ChannelN |
createChannel(AMQConnection connection) |
ChannelN |
createChannel(AMQConnection connection,
int channelNumber) |
void |
disconnectChannel(ChannelN channel)
Remove the argument channel from the channel map.
|
ChannelN |
getChannel(int channelNumber)
Public API - Looks up an existing channel associated with this connection.
|
int |
getChannelMax() |
void |
handleSignal(ShutdownSignalException signal) |
public final int _channelMax
public int getChannelMax()
public ChannelN getChannel(int channelNumber)
channelNumber
- the number of the required channelUnknownChannelException
- if there is no Channel associated with the
required channel number.public void handleSignal(ShutdownSignalException signal)
public ChannelN createChannel(AMQConnection connection) throws java.io.IOException
java.io.IOException
public ChannelN createChannel(AMQConnection connection, int channelNumber) throws java.io.IOException
java.io.IOException
public void disconnectChannel(ChannelN channel)