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 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.- Specified by:
- getin interface- Supplier<ExecuteWatchdog>
- Returns:
- 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.
 
 
-