Class GetAsyncResultRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class GetAsyncResultRequest extends ActionRequest
  • Constructor Details

    • GetAsyncResultRequest

      public GetAsyncResultRequest(String id)
      Creates a new request
      Parameters:
      id - The id of the search progress request.
    • GetAsyncResultRequest

      public GetAsyncResultRequest(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ActionRequest
      Throws:
      IOException
    • validate

      Specified by:
      validate in class ActionRequest
    • getId

      public String 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

      public GetAsyncResultRequest setKeepAlive(org.elasticsearch.core.TimeValue timeValue)
      Extends the amount of time after which the result will expire (defaults to no extension).
    • getKeepAlive

      public org.elasticsearch.core.TimeValue getKeepAlive()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object