Interface ShutdownController.Actuator

All Known Implementing Classes:
ExecutorShutdownController
Enclosing interface:
ShutdownController

public static interface ShutdownController.Actuator
  • Method Details

    • 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