public interface ElasticsearchClient
Modifier and Type | Method and Description |
---|---|
<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> |
execute(Action<Request,Response,RequestBuilder> action,
Request request)
Executes a generic action, denoted by an
Action . |
<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> |
execute(Action<Request,Response,RequestBuilder> action,
Request request,
ActionListener<Response> listener)
Executes a generic action, denoted by an
Action . |
<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> |
prepareExecute(Action<Request,Response,RequestBuilder> action)
Prepares a request builder to execute, specified by
Action . |
ThreadPool |
threadPool()
Returns the threadpool used to execute requests on this client
|
<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> ActionFuture<Response> execute(Action<Request,Response,RequestBuilder> action, Request request)
Action
.Request
- The request type.Response
- the response type.RequestBuilder
- The request builder type.action
- The action type to execute.request
- The action request.<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> void execute(Action<Request,Response,RequestBuilder> action, Request request, ActionListener<Response> listener)
Action
.Request
- The request type.Response
- The response type.RequestBuilder
- The request builder type.action
- The action type to execute.request
- The action request.listener
- The listener to receive the response back.<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> RequestBuilder prepareExecute(Action<Request,Response,RequestBuilder> action)
Action
.Request
- The request type.Response
- The response type.RequestBuilder
- The request builder.action
- The action type to execute.ThreadPool threadPool()