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
ConstructorsModifierConstructorDescriptionprotectedReplicationRequestBuilder(ElasticsearchClient client, ActionType<Response> action, Request request) -
Method Summary
Modifier and TypeMethodDescriptionfinal RequestBuilderfinal RequestBuildersetTimeout(String timeout) A timeout to wait if the index operation can't be performed immediately.final RequestBuildersetTimeout(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.
-