Uses of Interface
com.mastfrog.giulius.ShutdownHooks
Packages that use ShutdownHooks
-
Uses of ShutdownHooks in com.mastfrog.giulius
Classes in com.mastfrog.giulius that implement ShutdownHooksModifier and TypeClassDescriptionclassDeprecated.use com.mastfrog.shutdown.hooks.ShutdownHookRegistry directly - the code has been moved there, and this class simply delegates to it.Methods in com.mastfrog.giulius that return ShutdownHooksModifier and TypeMethodDescriptionDeprecated.ShutdownHooks.add(ExecutorService toShutdown) Deprecated.Add an executor service to the default batch; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.ShutdownHooks.addFirst(AutoCloseable toClose) Deprecated.Add an AutoCloseable to be cancelled to the batch which runs first; the AutoCloseable will be weakly referenced.Deprecated.Add a Runnable to the batch which runs first.Deprecated.ShutdownHooks.addFirst(ExecutorService toShutdown) Deprecated.Add an executor service to the batch which runs first; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.Deprecated.Add a timer to be cancelled to the batch which runs first; the timer will be weakly referenced.ShutdownHookRegistry.addFirstThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addFirstThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addFirstWeak(Runnable toRun) Deprecated.Add a Runnable to the batch which runs first, without keeping it strongly referenced.ShutdownHooks.addFirstWeak(Callable<?> toRun) Deprecated.default ShutdownHooksShutdownHooks.addFirstWeakThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addLast(AutoCloseable toClose) Deprecated.Add an AutoCloseable to be cancelled to the batch which runs last; the AutoCloseable will be weakly referenced.Deprecated.Add a Runnable to the batch which runs last.Deprecated.ShutdownHooks.addLast(ExecutorService toShutdown) Deprecated.Add an executor service to the batch which runs last; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.Deprecated.Add a timer to be cancelled to the batch which runs last; the timer will be weakly referenced.ShutdownHookRegistry.addLastThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addLastThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addLastWeak(Runnable toRun) Deprecated.Add a Runnable to the batch which runs first, without keeping it strongly referenced.ShutdownHooks.addLastWeak(Callable<?> toRun) Deprecated.default ShutdownHooksShutdownHooks.addLastWeakThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHookRegistry.addThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.ShutdownHooks.addThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.Deprecated.Add a Runnable to the default batch, without keeping it strongly referenced.Deprecated.default ShutdownHooksShutdownHooks.addWeakThrowing(com.mastfrog.function.throwing.ThrowingRunnable toRun) Deprecated.