Class BatchClientParallelOptions

java.lang.Object
com.azure.compute.batch.models.BatchClientParallelOptions

public class BatchClientParallelOptions extends Object
Stores options that configure the operation of methods on Batch client parallel operations.
  • Constructor Details

    • BatchClientParallelOptions

      public BatchClientParallelOptions()
      Initializes a new instance of the BatchClientParallelOptions class.
  • Method Details

    • getMaxDegreeOfParallelism

      public Integer getMaxDegreeOfParallelism()
      Gets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance. 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

      public BatchClientParallelOptions setMaxDegreeOfParallelism(Integer maxDegreeOfParallelism)
      Sets the maximum number of concurrent tasks enabled by this BatchClientParallelOptions instance. 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.