io.netty.channel.EventLoop#shutdownGracefully ( )源码实例Demo

下面列出了io.netty.channel.EventLoop#shutdownGracefully ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: dhcp4j   文件: DhcpServer.java
@PreDestroy
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    channel = null;
    loop.shutdownGracefully();

    super.stop();
}
 
源代码2 项目: dhcp4j   文件: Dhcp6Server.java
@PreDestroy
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    channel = null;
    loop.shutdownGracefully();
}
 
源代码3 项目: dhcp4j   文件: DhcpServer.java
@PreDestroy
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    channel = null;
    loop.shutdownGracefully();

    super.stop();
}
 
源代码4 项目: dhcp4j   文件: Dhcp6Server.java
@PreDestroy
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    channel = null;
    loop.shutdownGracefully();
}
 
源代码5 项目: tftp4j   文件: TftpServer.java
@Override
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    loop.shutdownGracefully();
}
 
源代码6 项目: ipmi4j   文件: IpmiClientImpl.java
@Override
public void stop() throws IOException, InterruptedException {
    EventLoop loop = channel.eventLoop();
    channel.close().sync();
    loop.shutdownGracefully();
}