Class ShutdownProviderBase<H>
java.lang.Object
dev.webfx.platform.shutdown.spi.impl.ShutdownProviderBase<H>
- All Implemented Interfaces:
ShutdownProvider
- Author:
- Bruno Salmon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddPlatformShutdownHook(H platformHook) voidaddShutdownHook(Runnable hook) protected abstract Hprotected abstract voidexit(int exitStatus) booleanbooleanprotected abstract voidremovePlatformShutdownHook(H platformHook) voidremoveShutdownHook(Runnable hook) voidsoftwareShutdown(boolean exit, int exitStatus) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.platform.shutdown.spi.ShutdownProvider
canExit
-
Constructor Details
-
ShutdownProviderBase
public ShutdownProviderBase()
-
-
Method Details
-
isShuttingDown
public boolean isShuttingDown()- Specified by:
isShuttingDownin interfaceShutdownProvider
-
isSoftwareShutdown
public boolean isSoftwareShutdown()- Specified by:
isSoftwareShutdownin interfaceShutdownProvider
-
addShutdownHook
- Specified by:
addShutdownHookin interfaceShutdownProvider
-
createPlatformShutdownHook
-
addPlatformShutdownHook
-
removeShutdownHook
- Specified by:
removeShutdownHookin interfaceShutdownProvider
-
removePlatformShutdownHook
-
softwareShutdown
public void softwareShutdown(boolean exit, int exitStatus) - Specified by:
softwareShutdownin interfaceShutdownProvider
-
exit
protected abstract void exit(int exitStatus)
-