Interface ShutdownController.Actuator
-
- All Known Implementing Classes:
ExecutorShutdownController
- Enclosing interface:
- ShutdownController
public static interface ShutdownController.Actuator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidannounceShutdown()ShutdownControllercontroller()<T> TgetPreventingShutdown(java.util.function.Supplier<T> supplier)Run an action that prevents a shutdown being performed while running.io.vavr.collection.Seq<java.lang.Throwable>performShutdown()default voidrunPreventingShutdown(java.lang.Runnable runnable)Run an action that prevents a shutdown being performed while running.default ShutdownController.Statestate()
-
-
-
Method Detail
-
controller
ShutdownController controller()
-
state
default ShutdownController.State state()
-
runPreventingShutdown
default void runPreventingShutdown(java.lang.Runnable runnable)
Run an action that prevents a shutdown being performed while running.
-
getPreventingShutdown
<T> T getPreventingShutdown(java.util.function.Supplier<T> supplier)
Run an action that prevents a shutdown being performed while running.
-
announceShutdown
void announceShutdown()
-
performShutdown
io.vavr.collection.Seq<java.lang.Throwable> performShutdown() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-