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