Package org.gradle.concurrent
Interface ParallelismConfiguration
-
- All Known Implementing Classes:
StartParameter
public interface ParallelismConfiguration
AParallelismConfiguration
defines the parallel settings for a Gradle build.- Since:
- 4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMaxWorkerCount()
Returns the maximum number of concurrent workers used for underlying build operations.boolean
isParallelProjectExecutionEnabled()
Returns true if parallel project execution is enabled.void
setMaxWorkerCount(int maxWorkerCount)
Specifies the maximum number of concurrent workers used for underlying build operations.void
setParallelProjectExecutionEnabled(boolean parallelProjectExecution)
Enables/disables parallel project execution.
-
-
-
Method Detail
-
isParallelProjectExecutionEnabled
boolean isParallelProjectExecutionEnabled()
Returns true if parallel project execution is enabled.- See Also:
getMaxWorkerCount()
-
setParallelProjectExecutionEnabled
void setParallelProjectExecutionEnabled(boolean parallelProjectExecution)
Enables/disables parallel project execution.- See Also:
isParallelProjectExecutionEnabled()
-
getMaxWorkerCount
int getMaxWorkerCount()
Returns the maximum number of concurrent workers used for underlying build operations. Workers can be threads, processes or whatever Gradle considers a "worker". Some examples:- A thread running a task
- A test process
- A language compiler in a forked process
- Returns:
- maximum number of concurrent workers, always >= 1.
- See Also:
Runtime.availableProcessors()
-
setMaxWorkerCount
void setMaxWorkerCount(int maxWorkerCount)
Specifies the maximum number of concurrent workers used for underlying build operations.- Throws:
java.lang.IllegalArgumentException
- ifmaxWorkerCount
is < 1- See Also:
getMaxWorkerCount()
-
-