public ServiceFuture<List<CloudTask>> listAsync(final String jobId, final TaskListOptions taskListOptions, final ListOperationCallback<CloudTask> serviceCallback) {
        return AzureServiceFuture.fromHeaderPageResponse(
            listSinglePageAsync(jobId, taskListOptions),
            new Func1<String, Observable<ServiceResponseWithHeaders<Page<CloudTask>, TaskListHeaders>>>() {
                @Override
                public Observable<ServiceResponseWithHeaders<Page<CloudTask>, TaskListHeaders>> call(String nextPageLink) {
                    TaskListNextOptions taskListNextOptions = null;
                    if (taskListOptions != null) {
                        taskListNextOptions = new TaskListNextOptions();
                        taskListNextOptions.withClientRequestId(taskListOptions.clientRequestId());
                        taskListNextOptions.withReturnClientRequestId(taskListOptions.returnClientRequestId());
                        taskListNextOptions.withOcpDate(taskListOptions.ocpDate());
                    }
                    return listNextSinglePageAsync(nextPageLink, taskListNextOptions);
                }
            },
            serviceCallback);
    }
public ServiceFuture < List < CloudTask > > listAsync ( final String jobId , final TaskListOptions taskListOptions , final ListOperationCallback < CloudTask > serviceCallback ) { return AzureServiceFuture . fromHeaderPageResponse ( listSinglePageAsync ( jobId , taskListOptions ) , new Func1 < String , Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > > > ( ) { @ Override public Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > > call ( String nextPageLink ) { TaskListNextOptions taskListNextOptions = null ; if ( taskListOptions != null ) { taskListNextOptions = new TaskListNextOptions ( ) ; taskListNextOptions . withClientRequestId ( taskListOptions . clientRequestId ( ) ) ; taskListNextOptions . withReturnClientRequestId ( taskListOptions . returnClientRequestId ( ) ) ; taskListNextOptions . withOcpDate ( taskListOptions . ocpDate ( ) ) ; } return listNextSinglePageAsync ( nextPageLink , taskListNextOptions ) ; } } , serviceCallback ) ; }
Lists all of the tasks that are associated with the specified job.
For multi-instance tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary task. Use the list subtasks API to retrieve information about subtasks.

@param jobId The ID of the job.
@param taskListOptions Additional parameters for the operation
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object