Class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>>
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.replication.ReplicationRequestBuilder<Request,Response,RequestBuilder>
- Direct Known Subclasses:
DeleteRequestBuilder
,IndexRequestBuilder
public abstract class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>>
extends ActionRequestBuilder<Request,Response>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ModifierConstructorDescriptionprotected
ReplicationRequestBuilder
(ElasticsearchClient client, ActionType<Response> action, Request request) -
Method Summary
Modifier and TypeMethodDescriptionfinal RequestBuilder
final RequestBuilder
setTimeout
(String timeout) A timeout to wait if the index operation can't be performed immediately.final RequestBuilder
setTimeout
(TimeValue timeout) A timeout to wait if the index operation can't be performed immediately.setWaitForActiveShards
(int waitForActiveShards) A shortcut forsetWaitForActiveShards(ActiveShardCount)
where the numerical shard count is passed in, instead of having to first callActiveShardCount.from(int)
to get the ActiveShardCount.setWaitForActiveShards
(ActiveShardCount waitForActiveShards) Sets the number of shard copies that must be active before proceeding with the write.
-
Constructor Details
-
ReplicationRequestBuilder
protected ReplicationRequestBuilder(ElasticsearchClient client, ActionType<Response> action, Request request)
-
-
Method Details
-
setTimeout
A timeout to wait if the index operation can't be performed immediately. Defaults to1m
. -
setTimeout
A timeout to wait if the index operation can't be performed immediately. Defaults to1m
. -
setIndex
-
setWaitForActiveShards
Sets the number of shard copies that must be active before proceeding with the write. SeeReplicationRequest.waitForActiveShards(ActiveShardCount)
for details. -
setWaitForActiveShards
A shortcut forsetWaitForActiveShards(ActiveShardCount)
where the numerical shard count is passed in, instead of having to first callActiveShardCount.from(int)
to get the ActiveShardCount.
-