Class DaemonExecutor

  • All Implemented Interfaces:
    Executor

    public class DaemonExecutor
    extends DefaultExecutor
    Runs daemon processes asynchronously. Callers are expected to register a ProcessDestroyer before executing any processes.
    Since:
    1.3
    • Method Detail

      • builder

        public static DaemonExecutor.Builder builder()
        Creates a new builder.
        Returns:
        a new builder.
        Since:
        1.4.0
      • createThread

        protected java.lang.Thread createThread​(java.lang.Runnable runnable,
                                                java.lang.String name)
        Factory method to create a thread waiting for the result of an asynchronous execution.
        Overrides:
        createThread in class DefaultExecutor
        Parameters:
        runnable - the runnable passed to the thread.
        name - the name of the thread.
        Returns:
        the thread.