类 AsyncSearchClient

java.lang.Object
org.easysearch.client.AsyncSearchClient

public class AsyncSearchClient
extends java.lang.Object
  • 方法详细资料

    • submit

      public AsyncSearchResponse submit​(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Submit a new async search request.
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • submitAsync

      public org.easysearch.client.Cancellable submitAsync​(SubmitAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)
      Asynchronously submit a new async search request.
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • get

      public AsyncSearchResponse get​(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Get an async search request.
      抛出:
      java.io.IOException
    • getAsync

      public org.easysearch.client.Cancellable getAsync​(GetAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AsyncSearchResponse> listener)
      Asynchronously get an async search request.
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • delete

      public AcknowledgedResponse delete​(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Delete an async search request.
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException - in case there is a problem sending the request or parsing back the response
    • deleteAsync

      public org.easysearch.client.Cancellable deleteAsync​(DeleteAsyncSearchRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<AcknowledgedResponse> listener)
      Asynchronously delete an async search request.
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request