Package org.gradle.concurrent
Schnittstelle ParallelismConfiguration
- Alle bekannten Implementierungsklassen:
StartParameter
public interface ParallelismConfiguration
A
ParallelismConfiguration defines the parallel settings for a Gradle build.- Seit:
- 4.1
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintReturns the maximum number of concurrent workers used for underlying build operations.booleanReturns true if parallel project execution is enabled.voidsetMaxWorkerCount(int maxWorkerCount) Specifies the maximum number of concurrent workers used for underlying build operations.voidsetParallelProjectExecutionEnabled(boolean parallelProjectExecution) Enables/disables parallel project execution.
-
Methodendetails
-
isParallelProjectExecutionEnabled
boolean isParallelProjectExecutionEnabled()Returns true if parallel project execution is enabled.- Siehe auch:
-
setParallelProjectExecutionEnabled
void setParallelProjectExecutionEnabled(boolean parallelProjectExecution) Enables/disables parallel project execution.- Siehe auch:
-
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
- Gibt zurück:
- maximum number of concurrent workers, always >= 1.
- Siehe auch:
-
setMaxWorkerCount
void setMaxWorkerCount(int maxWorkerCount) Specifies the maximum number of concurrent workers used for underlying build operations.- Löst aus:
IllegalArgumentException- ifmaxWorkerCountis < 1- Siehe auch:
-