Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java shutdown hook

Thread printingHook = new Thread(() -> System.out.println("In the middle of a shutdown"));
Runtime.getRuntime().addShutdownHook(printingHook);
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #java #shutdown #hook
ADD COMMENT
Topic
Name
5+7 =