下面列出了io.netty.channel.EventLoop#shutdownGracefully ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@PreDestroy
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
channel = null;
loop.shutdownGracefully();
super.stop();
}
@PreDestroy
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
channel = null;
loop.shutdownGracefully();
}
@PreDestroy
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
channel = null;
loop.shutdownGracefully();
super.stop();
}
@PreDestroy
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
channel = null;
loop.shutdownGracefully();
}
@Override
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
loop.shutdownGracefully();
}
@Override
public void stop() throws IOException, InterruptedException {
EventLoop loop = channel.eventLoop();
channel.close().sync();
loop.shutdownGracefully();
}