Class DefaultExecutor.Builder<T extends DefaultExecutor.Builder<T>>

    • Field Detail

      • threadFactory

        private java.util.concurrent.ThreadFactory threadFactory
        Thread factory.
      • workingDirectory

        private java.nio.file.Path workingDirectory
        Working directory path.
    • Constructor Detail

      • Builder

        public Builder()
        Constructs a new instance.
    • Method Detail

      • asThis

        T asThis()
        Returns this instance typed as the subclass type T.

        This is the same as the expression:

         (B) this
         
        Returns:
        this instance typed as the subclass type T.
      • get

        public DefaultExecutor get()
        Creates a new configured DefaultExecutor.
        Specified by:
        get in interface java.util.function.Supplier<T extends DefaultExecutor.Builder<T>>
        Returns:
        a new configured DefaultExecutor.
      • getThreadFactory

        java.util.concurrent.ThreadFactory getThreadFactory()
      • getWorkingDirectoryPath

        java.nio.file.Path getWorkingDirectoryPath()
      • setExecuteStreamHandler

        public T setExecuteStreamHandler​(ExecuteStreamHandler executeStreamHandler)
        Sets the PumpStreamHandler.
        Parameters:
        executeStreamHandler - the ExecuteStreamHandler, null resets to the default.
        Returns:
        this instance.
      • setThreadFactory

        public T setThreadFactory​(java.util.concurrent.ThreadFactory threadFactory)
        Sets the ThreadFactory.
        Parameters:
        threadFactory - the ThreadFactory, null resets to the default.
        Returns:
        this instance.
      • setWorkingDirectory

        public T setWorkingDirectory​(java.io.File workingDirectory)
        Sets the working directory.
        Parameters:
        workingDirectory - the working directory., null resets to the default.
        Returns:
        this instance.
      • setWorkingDirectory

        public T setWorkingDirectory​(java.nio.file.Path workingDirectory)
        Sets the working directory.
        Parameters:
        workingDirectory - the working directory., null resets to the default.
        Returns:
        this instance.
        Since:
        1.5.0