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
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
      Constructs a new instance.
  • 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 instance.
    • setTimeout

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