客户端ClientChannelHandler初始化逻辑优化

This commit is contained in:
aoshiguchen
2022-10-09 21:54:47 +08:00
parent e35adcca17
commit 3c8bcbf1f3
3 changed files with 37 additions and 26 deletions
@@ -45,17 +45,6 @@ public class ServerChannelHandler extends SimpleChannelInboundHandler<ProxyMessa
public ServerChannelHandler() {
dispatcher = BeanManager.getBean(Dispatcher.class);
// try {
// LockUtil.doubleCheckProcess(() -> null == dispatcher,
// ServerChannelHandler.class,
// () -> {
// dispatcher = new DefaultDispatcher<>("消息调度器",
// BeanManager.getBeanListBySuperClass(ProxyMessageHandler.class),
// proxyMessage -> ProxyDataTypeEnum.of((int)proxyMessage.getType()) == null ? null : ProxyDataTypeEnum.of((int)proxyMessage.getType()).getName());
// });
// } catch (Exception e) {
// e.printStackTrace();
// }
}
@Override