在分析AMQConnection ,里面需要ChannelManager使用,顺便看一下ChannelManager源码
文章目录
1、成员变量
| 变量名称 | 默认值 | 描述 |
|---|---|---|
| final Object monitor | new Object() | 加锁的对象 |
| final Map<Integer, ChannelN> _channelMap | new HashMap | 通道map对象 |
| final IntAllocator channelNumberAllocator | 通道编号分配器 | |
| final ConsumerWorkService workService | 工作服务对象 | |
| final Set shutdownSet | new HashSet() | 关闭线程等待 |
| final int _channelMax | 最大通道数 | |
| ExecutorService shutdownExecutor | 关闭执行器 | |
| ThreadFactory threadFactory | 线程工厂类 | |
| int channelShutdownTimeout | 60*1.05*1000 | 通道关闭超时时间(毫秒) |

最低0.47元/天 解锁文章
4万+

被折叠的 条评论
为什么被折叠?



