Java Code Examples for io.netty.channel.EventLoop#shutdownGracefully()
The following examples show how to use
io.netty.channel.EventLoop#shutdownGracefully() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DhcpServer.java From dhcp4j with Apache License 2.0 | 5 votes |
@PreDestroy public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); channel = null; loop.shutdownGracefully(); super.stop(); }
Example 2
Source File: Dhcp6Server.java From dhcp4j with Apache License 2.0 | 5 votes |
@PreDestroy public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); channel = null; loop.shutdownGracefully(); }
Example 3
Source File: DhcpServer.java From dhcp4j with Apache License 2.0 | 5 votes |
@PreDestroy public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); channel = null; loop.shutdownGracefully(); super.stop(); }
Example 4
Source File: Dhcp6Server.java From dhcp4j with Apache License 2.0 | 5 votes |
@PreDestroy public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); channel = null; loop.shutdownGracefully(); }
Example 5
Source File: TftpServer.java From tftp4j with Apache License 2.0 | 4 votes |
@Override public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); loop.shutdownGracefully(); }
Example 6
Source File: IpmiClientImpl.java From ipmi4j with Apache License 2.0 | 4 votes |
@Override public void stop() throws IOException, InterruptedException { EventLoop loop = channel.eventLoop(); channel.close().sync(); loop.shutdownGracefully(); }