Package org.elasticsearch.client
Interface ElasticsearchClient
-
- All Known Subinterfaces:
Client,ClusterAdminClient,IndicesAdminClient
- All Known Implementing Classes:
AbstractClient,FilterClient,NodeClient,OriginSettingClient,ParentTaskAssigningClient,TransportClient
public interface ElasticsearchClient
-
-
Method Summary
Modifier and Type Method Description <Request extends ActionRequest,Response extends ActionResponse>
ActionFuture<Response>execute(Action<Response> action, Request request)Executes a generic action, denoted by anAction.<Request extends ActionRequest,Response extends ActionResponse>
voidexecute(Action<Response> action, Request request, ActionListener<Response> listener)Executes a generic action, denoted by anAction.ThreadPoolthreadPool()Returns the threadpool used to execute requests on this client
-
-
-
Method Detail
-
execute
<Request extends ActionRequest,Response extends ActionResponse> ActionFuture<Response> execute(Action<Response> action, Request request)
Executes a generic action, denoted by anAction.- 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(Action<Response> action, Request request, ActionListener<Response> listener)
Executes a generic action, denoted by anAction.- 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
-
-