Interface ElasticsearchClient

All Known Subinterfaces:
Client, ClusterAdminClient, IndicesAdminClient
All Known Implementing Classes:
AbstractClient, FilterClient, NodeClient, OriginSettingClient, ParentTaskAssigningClient, TransportClient

public interface ElasticsearchClient
  • Method Details

    • execute

      <Request extends ActionRequest,​ Response extends ActionResponse> ActionFuture<Response> execute​(ActionType<Response> action, Request request)
      Executes a generic action, denoted by an ActionType.
      Type Parameters:
      Request - The request type.
      Response - the response type.
      Parameters:
      action - The action type to execute.
      request - The action request.
      Returns:
      A future allowing to get back the response.
    • execute

      <Request extends ActionRequest,​ Response extends ActionResponse> void execute​(ActionType<Response> action, Request request, ActionListener<Response> listener)
      Executes a generic action, denoted by an ActionType.
      Type Parameters:
      Request - The request type.
      Response - The response type.
      Parameters:
      action - The action type to execute.
      request - The action request.
      listener - The listener to receive the response back.
    • threadPool

      ThreadPool threadPool()
      Returns the threadpool used to execute requests on this client