BatchClientParallelOptions Class
- java.
lang. Object - BatchClientBehavior
- com.
microsoft. azure. batch. interceptor. BatchClientParallelOptions
- com.
public class BatchClientParallelOptions extends BatchClientBehavior
Stores options that configure the operation of methods on Batch client parallel operations.
Constructor Summary
Constructor | Description |
---|---|
BatchClientParallelOptions() |
Initializes a new instance of the BatchClientParallelOptions class with default values. |
BatchClientParallelOptions(int maxDegreeOfParallelism) |
Initializes a new instance of the BatchClientParallelOptions class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
maxDegreeOfParallelism()
Gets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance. The default value is 1. |
Batch |
withMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance. |
Constructor Details
BatchClientParallelOptions
public BatchClientParallelOptions()
Initializes a new instance of the BatchClientParallelOptions class with default values.
BatchClientParallelOptions
public BatchClientParallelOptions(int maxDegreeOfParallelism)
Initializes a new instance of the BatchClientParallelOptions class.
Parameters:
Method Details
maxDegreeOfParallelism
public int maxDegreeOfParallelism()
Gets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance.
The default value is 1.
Returns:
withMaxDegreeOfParallelism
public BatchClientParallelOptions withMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance.
Parameters:
Returns:
Applies to
Azure SDK for Java