shutodwn hook
This commit is contained in:
@@ -72,4 +72,11 @@ public class NettyServer implements Server {
|
||||
throw new StartServerException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
log.info("Server shutdown");
|
||||
workerGroup.shutdownGracefully();
|
||||
bossGroup.shutdownGracefully();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user