|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rabbitmq.client.impl.ChannelManager
public final class ChannelManager
Manages a set of channels, indexed by channel number (1.._channelMax
).
Constructor Summary | |
---|---|
ChannelManager(com.rabbitmq.client.impl.ConsumerWorkService workService,
int channelMax)
|
Method Summary | |
---|---|
ChannelN |
createChannel(AMQConnection connection)
|
ChannelN |
createChannel(AMQConnection connection,
int channelNumber)
|
ChannelN |
getChannel(int channelNumber)
Looks up a channel on this connection. |
int |
getChannelMax()
|
void |
handleSignal(ShutdownSignalException signal)
Handle shutdown. |
void |
releaseChannelNumber(ChannelN channel)
Remove the channel from the channel map and free the number for re-use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelManager(com.rabbitmq.client.impl.ConsumerWorkService workService, int channelMax)
Method Detail |
---|
public int getChannelMax()
public ChannelN getChannel(int channelNumber)
channelNumber
- the number of the required channel
channelNumber
UnknownChannelException
- if there is no channel with number channelNumber
on this connectionpublic void handleSignal(ShutdownSignalException signal)
Channel
s are shutdown.
signal
- reason for shutdownpublic 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 releaseChannelNumber(ChannelN channel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |