Package com.azure.compute.batch.models
Class BatchClientParallelOptions
java.lang.Object
com.azure.compute.batch.models.BatchClientParallelOptions
Stores options that configure the operation of methods on Batch client parallel operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptionsinstance.setMaxDegreeOfParallelism(Integer maxDegreeOfParallelism) Sets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptionsinstance.
-
Constructor Details
-
BatchClientParallelOptions
public BatchClientParallelOptions()Initializes a new instance of theBatchClientParallelOptionsclass.
-
-
Method Details
-
getMaxDegreeOfParallelism
Gets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptionsinstance. If not set, it returns null, indicating no specific limit is set.- Returns:
- The maximum number of concurrent tasks or null if not set.
-
setMaxDegreeOfParallelism
Sets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptionsinstance. Pass null to make the maximum degree of parallelism optional.- Parameters:
maxDegreeOfParallelism- the maximum number of concurrent tasks or null.- Returns:
- The instance of
BatchClientParallelOptions. - Throws:
IllegalArgumentException- Exception thrown if maxDegreeOfParallelism is less than 1 and not null.
-