public static DelegatedLoopResources newServerLoopResources ( EventLoopGroup workerGroup ) { EventLoopGroup bossGroup = Epoll . isAvailable ( ) ? new EpollEventLoopGroup ( BOSS_THREADS_NUM , BOSS_THREAD_FACTORY ) : new NioEventLoopGroup ( BOSS_THREADS_NUM , BOSS_THREAD_FACTORY ) ; return new DelegatedLoopResources ( bossGroup , workerGroup ) ; }
Creates new loop resources for server side .