Package org.elasticsearch.client.tasks
Class GetTaskRequest
java.lang.Object
org.elasticsearch.client.tasks.GetTaskRequest
- All Implemented Interfaces:
Validatable
-
Field Summary
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
org.elasticsearch.core.TimeValue
Timeout to wait for any async actions this request must take.boolean
Should this request wait for all found tasks to complete?int
hashCode()
setTimeout
(org.elasticsearch.core.TimeValue timeout) Timeout to wait for any async actions this request must take.setWaitForCompletion
(boolean waitForCompletion) Should this request wait for all found tasks to complete?validate()
Perform validation.
-
Constructor Details
-
GetTaskRequest
-
-
Method Details
-
getNodeId
-
getTaskId
public long getTaskId() -
getWaitForCompletion
public boolean getWaitForCompletion()Should this request wait for all found tasks to complete? -
setWaitForCompletion
Should this request wait for all found tasks to complete? -
getTimeout
public org.elasticsearch.core.TimeValue getTimeout()Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2. -
setTimeout
Timeout to wait for any async actions this request must take. -
validate
Description copied from interface:Validatable
Perform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationException
that is not null is assumed to contain validation errors and will be thrown.- Specified by:
validate
in interfaceValidatable
- Returns:
- An
Optional
ValidationException
that contains a list of validation errors.
-
hashCode
public int hashCode() -
equals
-