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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget()Creates a new configured ExecuteWatchdog.setThreadFactory(ThreadFactory threadFactory) Sets the thread factory.setTimeout(Duration timeout) Sets the timeout duration.
- 
Constructor Details- 
Builderpublic Builder()Constructs a new instance.
 
- 
- 
Method Details- 
getCreates a new configured ExecuteWatchdog.
- 
setThreadFactorySets the thread factory.- Parameters:
- threadFactory- the thread factory.
- Returns:
- thisinstance.
 
- 
setTimeoutSets the timeout duration.- Parameters:
- timeout- the timeout duration.
- Returns:
- thisinstance.
 
 
-