BatchClientParallelOptions Class

  • java.lang.Object

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.

BatchClientParallelOptions 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:

maxDegreeOfParallelism - the maximum number of concurrent tasks.

Method Details

maxDegreeOfParallelism

public int maxDegreeOfParallelism()

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

Parameters:

maxDegreeOfParallelism - the maximum number of concurrent tasks.

Returns:

Applies to