左程云大廠算法和數(shù)據(jù)結(jié)構(gòu)刷題班
? EventLoopGroup newEventLoopGroup = new NioEventLoopGroup(workerCount,
? ? ? ? ? ? ? ? ? ?threadFactory(this, "nio"));
? ? ? ? ? ?if (!serverLoops.compareAndSet(null, newEventLoopGroup)) {
? ? ? ? ? ? ? ?//"FutureReturnValueIgnored" this is deliberate
? ? ? ? ? ? ? ?newEventLoopGroup.shutdownGracefully(0, 0, TimeUnit.MILLISECONDS);
? ? ? ? ? ?}
標(biāo)簽: