Archived
0

shutodwn hook

This commit is contained in:
2018-04-26 21:43:35 +03:00
parent 0a699d2ad8
commit 6f7f2ad813
3 changed files with 9 additions and 0 deletions

View File

@@ -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();
}
}