Example usage for io.netty.channel.socket ServerSocketChannel eventLoop

List of usage examples for io.netty.channel.socket ServerSocketChannel eventLoop

Introduction

In this page you can find the example usage for io.netty.channel.socket ServerSocketChannel eventLoop.

Prototype

EventLoop eventLoop();

Source Link

Document

Return the EventLoop this Channel was registered to.

Usage

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();
    }
}