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 Typ
    Methode
    Beschreibung
    int
    Returns the maximum number of concurrent workers used for underlying build operations.
    boolean
    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.
  • 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
      Defaults to the number of processors available to the Java virtual machine.
      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 - if maxWorkerCount is < 1
      Siehe auch: