Package org.apache.commons.exec
Class Watchdog.Builder
java.lang.Object
org.apache.commons.exec.Watchdog.Builder
- Enclosing class:
Watchdog
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. -
setThreadFactory
Sets the thread factory.- Parameters:
threadFactory
- the thread factory.- Returns:
- this.
-
setTimeout
Sets the timeout duration.- Parameters:
timeout
- the timeout duration.- Returns:
- this.
-