DeleteRequestBuilder, IndexRequestBuilderpublic abstract class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>> extends ActionRequestBuilder<Request,Response,RequestBuilder>
action, client, request| Modifier | Constructor | Description |
|---|---|---|
protected |
ReplicationRequestBuilder(ElasticsearchClient client,
Action<Request,Response,RequestBuilder> action,
Request request) |
| Modifier and Type | Method | Description |
|---|---|---|
RequestBuilder |
setIndex(java.lang.String index) |
|
RequestBuilder |
setTimeout(java.lang.String timeout) |
A timeout to wait if the index operation can't be performed immediately.
|
RequestBuilder |
setTimeout(TimeValue timeout) |
A timeout to wait if the index operation can't be performed immediately.
|
RequestBuilder |
setWaitForActiveShards(int waitForActiveShards) |
A shortcut for
setWaitForActiveShards(ActiveShardCount) where the numerical
shard count is passed in, instead of having to first call ActiveShardCount.from(int)
to get the ActiveShardCount. |
RequestBuilder |
setWaitForActiveShards(ActiveShardCount waitForActiveShards) |
Sets the number of shard copies that must be active before proceeding with the write.
|
protected ReplicationRequestBuilder(ElasticsearchClient client, Action<Request,Response,RequestBuilder> action, Request request)
public final RequestBuilder setTimeout(TimeValue timeout)
public final RequestBuilder setTimeout(java.lang.String timeout)
public final RequestBuilder setIndex(java.lang.String index)
public RequestBuilder setWaitForActiveShards(ActiveShardCount waitForActiveShards)
ReplicationRequest.waitForActiveShards(ActiveShardCount) for details.public RequestBuilder setWaitForActiveShards(int waitForActiveShards)
setWaitForActiveShards(ActiveShardCount) where the numerical
shard count is passed in, instead of having to first call ActiveShardCount.from(int)
to get the ActiveShardCount.