public class ChannelManager extends Object
1.._channelMax).| Constructor and Description |
|---|
ChannelManager(ConsumerWorkService workService,
int channelMax) |
ChannelManager(ConsumerWorkService workService,
int channelMax,
ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
ChannelN |
createChannel(AMQConnection connection) |
ChannelN |
createChannel(AMQConnection connection,
int channelNumber) |
ChannelN |
getChannel(int channelNumber)
Looks up a channel on this connection.
|
int |
getChannelMax() |
ExecutorService |
getShutdownExecutor() |
void |
handleSignal(ShutdownSignalException signal)
Handle shutdown.
|
protected ChannelN |
instantiateChannel(AMQConnection connection,
int channelNumber,
ConsumerWorkService workService) |
void |
releaseChannelNumber(ChannelN channel)
Remove the channel from the channel map and free the number for re-use.
|
void |
setShutdownExecutor(ExecutorService shutdownExecutor) |
public ChannelManager(ConsumerWorkService workService, int channelMax)
public ChannelManager(ConsumerWorkService workService, int channelMax, ThreadFactory threadFactory)
public int getChannelMax()
public ChannelN getChannel(int channelNumber)
channelNumber - the number of the required channelchannelNumberUnknownChannelException - if there is no channel with number channelNumber on this connectionpublic void handleSignal(ShutdownSignalException signal)
Channels are shutdown.signal - reason for shutdownpublic ChannelN createChannel(AMQConnection connection) throws IOException
IOExceptionpublic ChannelN createChannel(AMQConnection connection, int channelNumber) throws IOException
IOExceptionprotected ChannelN instantiateChannel(AMQConnection connection, int channelNumber, ConsumerWorkService workService)
public void releaseChannelNumber(ChannelN channel)
public ExecutorService getShutdownExecutor()
public void setShutdownExecutor(ExecutorService shutdownExecutor)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.