Class FollowRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<FollowRequest.Builder>
co.elastic.clients.elasticsearch.ccr.FollowRequest.Builder
- All Implemented Interfaces:
WithJson<FollowRequest.Builder>,ObjectBuilder<FollowRequest>
- Enclosing class:
- FollowRequest
public static class FollowRequest.Builder
extends RequestBase.AbstractBuilder<FollowRequest.Builder>
implements ObjectBuilder<FollowRequest>
Builder for
FollowRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFollowRequest.final FollowRequest.BuilderRequired - The name of the follower indexfinal FollowRequest.BuilderleaderIndex(String value) API name:leader_indexfinal FollowRequest.BuildermaxOutstandingReadRequests(Long value) API name:max_outstanding_read_requestsfinal FollowRequest.BuildermaxOutstandingWriteRequests(Long value) API name:max_outstanding_write_requestsfinal FollowRequest.BuildermaxReadRequestOperationCount(Long value) API name:max_read_request_operation_countfinal FollowRequest.BuildermaxReadRequestSize(String value) API name:max_read_request_sizefinal FollowRequest.BuildermaxRetryDelay(Time value) API name:max_retry_delayfinal FollowRequest.BuilderAPI name:max_retry_delayfinal FollowRequest.BuildermaxWriteBufferCount(Long value) API name:max_write_buffer_countfinal FollowRequest.BuildermaxWriteBufferSize(String value) API name:max_write_buffer_sizefinal FollowRequest.BuilderAPI name:max_write_request_operation_countfinal FollowRequest.BuildermaxWriteRequestSize(String value) API name:max_write_request_sizefinal FollowRequest.BuilderreadPollTimeout(Time value) API name:read_poll_timeoutfinal FollowRequest.BuilderAPI name:read_poll_timeoutfinal FollowRequest.BuilderremoteCluster(String value) API name:remote_clusterprotected FollowRequest.Builderself()final FollowRequest.BuilderSets the number of shard copies that must be active before returning.final FollowRequest.BuilderSets the number of shard copies that must be active before returning.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The name of the follower indexAPI name:
index -
leaderIndex
API name:leader_index -
maxOutstandingReadRequests
API name:max_outstanding_read_requests -
maxOutstandingWriteRequests
API name:max_outstanding_write_requests -
maxReadRequestOperationCount
API name:max_read_request_operation_count -
maxReadRequestSize
API name:max_read_request_size -
maxRetryDelay
API name:max_retry_delay -
maxRetryDelay
API name:max_retry_delay -
maxWriteBufferCount
API name:max_write_buffer_count -
maxWriteBufferSize
API name:max_write_buffer_size -
maxWriteRequestOperationCount
API name:max_write_request_operation_count -
maxWriteRequestSize
API name:max_write_request_size -
readPollTimeout
API name:read_poll_timeout -
readPollTimeout
API name:read_poll_timeout -
remoteCluster
API name:remote_cluster -
waitForActiveShards
Sets the number of shard copies that must be active before returning. Defaults to 0. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
waitForActiveShards
public final FollowRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) Sets the number of shard copies that must be active before returning. Defaults to 0. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<FollowRequest.Builder>
-
build
Builds aFollowRequest.- Specified by:
buildin interfaceObjectBuilder<FollowRequest>- Throws:
NullPointerException- if some of the required fields are null.
-