Package org.apache.commons.exec

# Class ExecuteWatchdog.Builder

java.lang.Object
org.apache.commons.exec.ExecuteWatchdog.Builder

All Implemented Interfaces:
  `Supplier<ExecuteWatchdog>`

Enclosing class:
  `ExecuteWatchdog`

public static final class ExecuteWatchdog.Builder extends Object implements Supplier<ExecuteWatchdog>
Builds ExecuteWatchdog instances.

Since:
  1.4.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ExecuteWatchdog`
  `get()`
  Creates a new configured ExecuteWatchdog.
  `ExecuteWatchdog.Builder`
  `setThreadFactory(ThreadFactory threadFactory)`
  Sets the thread factory.
  `ExecuteWatchdog.Builder`
  `setTimeout(Duration timeout)`
  Sets the timeout duration.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### get

    public ExecuteWatchdog get()
    Creates a new configured ExecuteWatchdog.
    Specified by:
      `get` in interface `Supplier<ExecuteWatchdog>`
    Returns:
      a new configured ExecuteWatchdog.

  - ### setThreadFactory

    public ExecuteWatchdog.Builder setThreadFactory(ThreadFactory threadFactory)
    Sets the thread factory.
    Parameters:
      `threadFactory` - the thread factory.
    Returns:
      this.

  - ### setTimeout

    public ExecuteWatchdog.Builder setTimeout(Duration timeout)
    Sets the timeout duration.
    Parameters:
      `timeout` - the timeout duration.
    Returns:
      this.