Module org.elasticsearch.server
Class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>>
java.lang.Object
org.elasticsearch.action.ActionRequestLazyBuilder<Request,Response>
org.elasticsearch.action.support.replication.ReplicationRequestBuilder<Request,Response,RequestBuilder>
- All Implemented Interfaces:
RequestBuilder<Request,Response>
- Direct Known Subclasses:
DeleteRequestBuilder,IndexRequestBuilder
public abstract class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>>
extends ActionRequestLazyBuilder<Request,Response>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestLazyBuilder
action, client -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReplicationRequestBuilder(ElasticsearchClient client, ActionType<Response> action) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetIndex()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
-
-
Method Details
-
setTimeout
A timeout to wait if the index operation can't be performed immediately. Defaults to1m. -
setIndex
-
getIndex
-
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. -
apply
-