Interface ShutdownHookRegistrar
public interface ShutdownHookRegistrar
Optional platform hook for lifecycle shutdown events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterShutdownHook(Runnable hook) Registers a shutdown hook that fires when the platform is stopping.default voidUnregisters a previously registered shutdown hook.
-
Method Details
-
registerShutdownHook
Registers a shutdown hook that fires when the platform is stopping.- Parameters:
hook- shutdown callback
-
unregisterShutdownHook
Unregisters a previously registered shutdown hook.- Parameters:
hook- shutdown callback to remove
-