Class OnetimeShutdownTask

java.lang.Object
io.deephaven.util.process.OnetimeShutdownTask
All Implemented Interfaces:
ShutdownManager.Task
Direct Known Subclasses:
LoggerShutdownTask

public abstract class OnetimeShutdownTask extends Object implements ShutdownManager.Task
  • Constructor Details

    • OnetimeShutdownTask

      public OnetimeShutdownTask()
  • Method Details

    • isShutdown

      public final boolean isShutdown()
    • invoke

      public final void invoke()
      Description copied from interface: ShutdownManager.Task
      Invoke this task for shutdown processing.
      Specified by:
      invoke in interface ShutdownManager.Task
    • awaitShutdown

      public final void awaitShutdown()
    • awaitShutdown

      public final void awaitShutdown(long waitMillis, Runnable task)
    • shutdown

      protected abstract void shutdown()
    • adapt

      public static OnetimeShutdownTask adapt(@NotNull @NotNull Runnable shutdown)