Class BatchClientParallelOptions
- java.lang.Object
-
- com.microsoft.azure.batch.BatchClientBehavior
-
- com.microsoft.azure.batch.interceptor.BatchClientParallelOptions
-
public class BatchClientParallelOptions extends BatchClientBehavior
Stores options that configure the operation of methods on Batch client parallel operations.
-
-
Constructor Summary
Constructors Constructor Description BatchClientParallelOptions()
Initializes a new instance of theBatchClientParallelOptions
class with default values.BatchClientParallelOptions(int maxDegreeOfParallelism)
Initializes a new instance of theBatchClientParallelOptions
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
maxDegreeOfParallelism()
Gets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptions
instance.BatchClientParallelOptions
withMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptions
instance.
-
-
-
Constructor Detail
-
BatchClientParallelOptions
public BatchClientParallelOptions()
Initializes a new instance of theBatchClientParallelOptions
class with default values.
-
BatchClientParallelOptions
public BatchClientParallelOptions(int maxDegreeOfParallelism)
Initializes a new instance of theBatchClientParallelOptions
class.- Parameters:
maxDegreeOfParallelism
- the maximum number of concurrent tasks.
-
-
Method Detail
-
maxDegreeOfParallelism
public int maxDegreeOfParallelism()
Gets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptions
instance. The default value is 1.- Returns:
- The maximum number of concurrent tasks.
-
withMaxDegreeOfParallelism
public BatchClientParallelOptions withMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the maximum number of concurrent tasks enabled by thisBatchClientParallelOptions
instance.- Parameters:
maxDegreeOfParallelism
- the maximum number of concurrent tasks.- Returns:
- The instance of
BatchClientParallelOptions
.
-
-