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
-
Method Summary
Modifier and TypeMethodDescriptionget()
Creates a new configured ExecuteWatchdog.setThreadFactory
(ThreadFactory threadFactory) Sets the thread factory.setTimeout
(Duration timeout) Sets the timeout duration.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
get
Creates a new configured ExecuteWatchdog.- Specified by:
get
in interfaceSupplier<ExecuteWatchdog>
- Returns:
- a new configured ExecuteWatchdog.
-
setThreadFactory
Sets the thread factory.- Parameters:
threadFactory
- the thread factory.- Returns:
- this.
-
setTimeout
Sets the timeout duration.- Parameters:
timeout
- the timeout duration.- Returns:
- this.
-