final ChannelFuture future = boot.bind(port).sync();
// Wait until the server socket is closed.
future.channel().closeFuture().sync();
} finally {
// Shut down all event loops to terminate all threads.
boot.shutdown();
}
}
public static void main(final String[] args) throws Exception {
log.info("init");