Module org.elasticsearch.xcore
Class GetAsyncResultRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.xpack.core.async.GetAsyncResultRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new request -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns the id of the async search.org.elasticsearch.core.TimeValueorg.elasticsearch.core.TimeValueinthashCode()setKeepAlive(org.elasticsearch.core.TimeValue timeValue) Extends the amount of time after which the result will expire (defaults to no extension).setWaitForCompletionTimeout(org.elasticsearch.core.TimeValue timeValue) Sets the minimum time that the request should wait before returning a partial result (defaults to no wait).validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
GetAsyncResultRequest
Creates a new request- Parameters:
id- The id of the search progress request.
-
GetAsyncResultRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
validate
- Specified by:
validatein classActionRequest
-
getId
Returns the id of the async search. -
setWaitForCompletionTimeout
public GetAsyncResultRequest setWaitForCompletionTimeout(org.elasticsearch.core.TimeValue timeValue) Sets the minimum time that the request should wait before returning a partial result (defaults to no wait). -
getWaitForCompletionTimeout
public org.elasticsearch.core.TimeValue getWaitForCompletionTimeout() -
setKeepAlive
Extends the amount of time after which the result will expire (defaults to no extension). -
getKeepAlive
public org.elasticsearch.core.TimeValue getKeepAlive() -
equals
-
hashCode
public int hashCode()
-