Class GetTaskRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<GetTaskRequest,GetTaskResponse>
org.elasticsearch.action.admin.cluster.node.tasks.get.GetTaskRequestBuilder
public class GetTaskRequestBuilder extends ActionRequestBuilder<GetTaskRequest,GetTaskResponse>
Builder for the request to retrieve the list of tasks running on the specified nodes
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GetTaskRequestBuilder(ElasticsearchClient client, GetTaskAction action) -
Method Summary
Modifier and Type Method Description GetTaskRequestBuildersetTaskId(TaskId taskId)Set the TaskId to look up.GetTaskRequestBuildersetTimeout(org.elasticsearch.common.unit.TimeValue timeout)Timeout to wait for any async actions this request must take.GetTaskRequestBuildersetWaitForCompletion(boolean waitForCompletion)Should this request wait for all found tasks to complete?
-
Constructor Details
-
Method Details
-
setTaskId
Set the TaskId to look up. Required. -
setWaitForCompletion
Should this request wait for all found tasks to complete? -
setTimeout
Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2.
-