Class DaemonBase

  • All Implemented Interfaces:
    AsyncRunnable, java.io.Closeable, java.lang.AutoCloseable

    public abstract class DaemonBase
    extends AsyncRunnableBase
    Modifies the async runnable to make sure that all instances are closed by the special method. It's useful to place the closeAll() call into the JVM's shutdown hook.
    • Constructor Detail

      • DaemonBase

        protected DaemonBase()
    • Method Detail

      • close

        public final void close()
                         throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class AsyncRunnableBase
        Throws:
        java.io.IOException
      • closeAll

        public static void closeAll()