}
int selectThreadCount = env.getProperty("reactor.tcp.selectThreadCount", Integer.class,
Environment.PROCESSORS / 2);
int ioThreadCount = env.getProperty("reactor.tcp.ioThreadCount", Integer.class, Environment.PROCESSORS);
this.selectorGroup = new NioEventLoopGroup(selectThreadCount, new NamedDaemonThreadFactory("reactor-tcp-select"));
if (null != nettyOptions && null != nettyOptions.eventLoopGroup()) {
this.ioGroup = nettyOptions.eventLoopGroup();
} else {
this.ioGroup = new NioEventLoopGroup(ioThreadCount, new NamedDaemonThreadFactory("reactor-tcp-io"));
}
this.bootstrap = new ServerBootstrap()
.group(selectorGroup, ioGroup)
.channel(NioServerSocketChannel.class)