public class ConcurrencyLimit extends Object
Modifier and Type | Field and Description |
---|---|
ResourceAmounts |
defaultAmounts
Default resource amounts that job would require.
|
int |
managedThreadCount
Number of threads that Buck can manage and use them as worker threads.
|
ResourceAmounts |
maximumAmounts
Maximum resource amounts that are available on the system for all jobs to share.
|
ResourceAllocationFairness |
resourceAllocationFairness |
int |
threadLimit
Considered as number of build threads that are available for extensive computations.
|
Constructor and Description |
---|
ConcurrencyLimit(int threadLimit,
ResourceAllocationFairness resourceAllocationFairness,
int managedThreadCount,
ResourceAmounts defaultAmounts,
ResourceAmounts maximumAmounts) |
public final int threadLimit
public final ResourceAllocationFairness resourceAllocationFairness
public final int managedThreadCount
threadLimit
value. The rest of the threads may be used for lightweight
tasks, I/O blocking tasks, etc.public final ResourceAmounts defaultAmounts
public final ResourceAmounts maximumAmounts
public ConcurrencyLimit(int threadLimit, ResourceAllocationFairness resourceAllocationFairness, int managedThreadCount, ResourceAmounts defaultAmounts, ResourceAmounts maximumAmounts)