public EtcdNettyConfig setEventLoopGroup ( EventLoopGroup eventLoopGroup , boolean managed ) { if ( this . eventLoopGroup != null && this . managedEventLoopGroup ) { // if i manage it, close the old when new one come this . eventLoopGroup . shutdownGracefully ( ) ; } this . eventLoopGroup = eventLoopGroup ; this . managedEventLoopGroup = managed ; return this ; }
Set a custom event loop group . For use within existing netty architectures