How to handle a SIGTERM

Yes, you can register a shutdown hook with Runtime.addShutdownHook().

Leave a Comment