Class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>,Response extends ActionResponse,RequestBuilder extends ReplicationRequestBuilder<Request,Response,RequestBuilder>>
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 TypeMethodDescriptionindex)
timeout)
A timeout to wait if the index operation can't be performed immediately.setTimeout(org.elasticsearch.core.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.Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.
, , , , , , , , , ,
-
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
public final timeout)A timeout to wait if the index operation can't be performed immediately. Defaults to1m
. -
setIndex
public final index) -
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.
-