List of usage examples for io.netty.channel.socket ServerSocketChannel eventLoop
EventLoop eventLoop();
From source file:com.google.devtools.build.lib.remote.blobstore.http.HttpBlobStoreTest.java
License:Open Source License
private void closeServerChannel(ServerSocketChannel server) throws InterruptedException { if (server != null) { server.close();//from ww w. ja v a 2 s. co m server.closeFuture().sync(); server.eventLoop().shutdownGracefully().sync(); } }