Class Watchdog.Builder
java.lang.Object
org.apache.commons.exec.Watchdog.Builder
- Enclosing class:
Watchdog
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Creates a new configured ExecuteWatchdog.setThreadFactory(ThreadFactory threadFactory) Sets the thread factory.setTimeout(Duration timeout) Sets the timeout duration.
-
Field Details
-
threadFactory
-
timeout
-
-
Constructor Details
-
Builder
public Builder()Constructs a new instance.
-
-
Method Details
-
get
-
setThreadFactory
Sets the thread factory.- Parameters:
threadFactory- the thread factory.- Returns:
thisinstance.
-
setTimeout
Sets the timeout duration.- Parameters:
timeout- the timeout duration.- Returns:
thisinstance.
-