# Deprecated API

## Contents

- Classes
- Methods
- Constructors

- Deprecated Classes
  Class
  Description
  org.apache.commons.exec.environment.OpenVmsProcessingEnvironment
  No longer needed.

- Deprecated Methods
  Method
  Description
  org.apache.commons.exec.DefaultExecuteResultHandler.waitFor(long)
  Use `DefaultExecuteResultHandler.waitFor(Duration)`.
  org.apache.commons.exec.DefaultExecutor.setWorkingDirectory(File)
  Use `DefaultExecutor.Builder.setWorkingDirectory(File)`.
  org.apache.commons.exec.environment.DefaultProcessingEnvironment.getProcEnvCommand()
  No longer needed.
  org.apache.commons.exec.environment.DefaultProcessingEnvironment.runProcEnvCommand()
  No longer needed.
  org.apache.commons.exec.PumpStreamHandler.setStopTimeout(long)
  Use `PumpStreamHandler.setStopTimeout(Duration)`.
  org.apache.commons.exec.util.StringUtils.toString(String[], String)
  Use `String.join(CharSequence, CharSequence...)`.

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.exec.DaemonExecutor()
  Use `DaemonExecutor.Builder.get()`.
  org.apache.commons.exec.DefaultExecutor()
  Use `DefaultExecutor.Builder.get()`.
  org.apache.commons.exec.ExecuteWatchdog(long)
  Use `ExecuteWatchdog.Builder.get()`.
  org.apache.commons.exec.util.DebugUtils()
  Will be private in the next major version.
  org.apache.commons.exec.util.MapUtils()
  Will be private in the next major version.
  org.apache.commons.exec.util.StringUtils()
  Will be private in the next major version.
  org.apache.commons.exec.Watchdog(long)
  Use `Watchdog.Builder.get()`.