< prev index next >

src/java.base/share/classes/java/lang/Shutdown.java

Print this page

        

*** 84,94 **** * will be invoked in order during shutdown * @params registerShutdownInProgress true to allow the hook * to be registered even if the shutdown is in progress. * @params hook the hook to be registered * ! * @throw IllegalStateException * if registerShutdownInProgress is false and shutdown is in progress; or * if registerShutdownInProgress is true and the shutdown process * already passes the given slot */ static void add(int slot, boolean registerShutdownInProgress, Runnable hook) { --- 84,94 ---- * will be invoked in order during shutdown * @params registerShutdownInProgress true to allow the hook * to be registered even if the shutdown is in progress. * @params hook the hook to be registered * ! * @throws IllegalStateException * if registerShutdownInProgress is false and shutdown is in progress; or * if registerShutdownInProgress is true and the shutdown process * already passes the given slot */ static void add(int slot, boolean registerShutdownInProgress, Runnable hook) {
< prev index next >