TaskOperations.createTasks Method

定义

重载

createTasks(String jobId, List<TaskAddParameter> taskList)

Adds multiple tasks to a job.

createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)

Adds multiple tasks to a job.

createTasks(String jobId, List<TaskAddParameter> taskList)

Adds multiple tasks to a job.

public void createTasks(String jobId, List<TaskAddParameter> taskList)
参数
jobId
String

The ID of the job to which to add the task.

taskList
List<TaskAddParameter>

A list of tasks to add.

异常
RuntimeException

Exception thrown when an error response is received from the Batch service or any network exception.

InterruptedException

Exception thrown if any thread has interrupted the current thread.

createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)

Adds multiple tasks to a job.

public void createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)
参数
jobId
String

The ID of the job to which to add the task.

taskList
List<TaskAddParameter>

A list of tasks to add.

additionalBehaviors
Iterable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request.

异常
RuntimeException

Exception thrown when an error response is received from the Batch service or any network exception.

InterruptedException

Exception thrown if any thread has interrupted the current thread.

适用于