EventLoopGroup workerGroup;
int bossThreadCount = WorkerConf.get().NETTY_BOSS_THREADS;
int workerThreadCount = WorkerConf.get().NETTY_WORKER_THREADS;
switch (type) {
case EPOLL:
bossGroup = new EpollEventLoopGroup(bossThreadCount, bossThreadFactory);
workerGroup = new EpollEventLoopGroup(workerThreadCount, workerThreadFactory);
boot.channel(EpollServerSocketChannel.class);
break;
default:
bossGroup = new NioEventLoopGroup(bossThreadCount, bossThreadFactory);
workerGroup = new NioEventLoopGroup(workerThreadCount, workerThreadFactory);