public abstract class ActionRequestBuilder<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Action<Request,Response,RequestBuilder> |
action |
protected ElasticsearchClient |
client |
protected Request |
request |
Modifier | Constructor and Description |
---|---|
protected |
ActionRequestBuilder(ElasticsearchClient client,
Action<Request,Response,RequestBuilder> action,
Request request) |
Modifier and Type | Method and Description |
---|---|
protected Request |
beforeExecute(Request request)
A callback to additionally process the request before its executed
|
ListenableActionFuture<Response> |
execute() |
void |
execute(ActionListener<Response> listener) |
Response |
get()
Short version of execute().actionGet().
|
Response |
get(java.lang.String timeout)
Short version of execute().actionGet().
|
Response |
get(TimeValue timeout)
Short version of execute().actionGet().
|
Request |
request() |
protected final Action<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> action
protected final Request extends ActionRequest request
protected final ElasticsearchClient client
protected ActionRequestBuilder(ElasticsearchClient client, Action<Request,Response,RequestBuilder> action, Request request)
public Request request()
public ListenableActionFuture<Response> execute()
public Response get()
public Response get(java.lang.String timeout)
public void execute(ActionListener<Response> listener)