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
-
Constructor Summary
Constructors Modifier Constructor Description protectedReplicationRequestBuilder(ElasticsearchClient client, ActionType<Response> action, Request request) -
Method Summary
Modifier and Type Method Description RequestBuildersetIndex(java.lang.String index)RequestBuildersetTimeout(java.lang.String timeout)A timeout to wait if the index operation can't be performed immediately.RequestBuildersetTimeout(org.elasticsearch.common.unit.TimeValue timeout)A timeout to wait if the index operation can't be performed immediately.RequestBuildersetWaitForActiveShards(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.RequestBuildersetWaitForActiveShards(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.
-