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.Builder
dataStreamName
(String value) If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.final FollowRequest.Builder
Required - The name of the follower index.final FollowRequest.Builder
leaderIndex
(String value) Required - The name of the index in the leader cluster to follow.final FollowRequest.Builder
masterTimeout
(Time value) Period to wait for a connection to the master node.final FollowRequest.Builder
Period to wait for a connection to the master node.final FollowRequest.Builder
maxOutstandingReadRequests
(Long value) The maximum number of outstanding reads requests from the remote cluster.final FollowRequest.Builder
The maximum number of outstanding write requests on the follower.final FollowRequest.Builder
The maximum number of operations to pull per read from the remote cluster.final FollowRequest.Builder
maxReadRequestSize
(String value) The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.final FollowRequest.Builder
maxRetryDelay
(Time value) The maximum time to wait before retrying an operation that failed exceptionally.final FollowRequest.Builder
The maximum time to wait before retrying an operation that failed exceptionally.final FollowRequest.Builder
maxWriteBufferCount
(Integer value) The maximum number of operations that can be queued for writing.final FollowRequest.Builder
maxWriteBufferSize
(String value) The maximum total bytes of operations that can be queued for writing.final FollowRequest.Builder
The maximum number of operations per bulk write request executed on the follower.final FollowRequest.Builder
maxWriteRequestSize
(String value) The maximum total bytes of operations per bulk write request executed on the follower.final FollowRequest.Builder
readPollTimeout
(Time value) The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.final FollowRequest.Builder
The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.final FollowRequest.Builder
remoteCluster
(String value) Required - The remote cluster containing the leader index.protected FollowRequest.Builder
self()
final FollowRequest.Builder
settings
(IndexSettings value) Settings to override from the leader index.final FollowRequest.Builder
Settings to override from the leader index.final FollowRequest.Builder
Specifies the number of shards to wait on being active before responding.final FollowRequest.Builder
Specifies the number of shards to wait on being active before responding.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataStreamName
If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.API name:
data_stream_name
-
index
Required - The name of the follower index.API name:
index
-
leaderIndex
Required - The name of the index in the leader cluster to follow.API name:
leader_index
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
maxOutstandingReadRequests
The maximum number of outstanding reads requests from the remote cluster.API name:
max_outstanding_read_requests
-
maxOutstandingWriteRequests
The maximum number of outstanding write requests on the follower.API name:
max_outstanding_write_requests
-
maxReadRequestOperationCount
The maximum number of operations to pull per read from the remote cluster.API name:
max_read_request_operation_count
-
maxReadRequestSize
The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.API name:
max_read_request_size
-
maxRetryDelay
The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.API name:
max_retry_delay
-
maxRetryDelay
The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.API name:
max_retry_delay
-
maxWriteBufferCount
The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the number of queued operations goes below the limit.API name:
max_write_buffer_count
-
maxWriteBufferSize
The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the total bytes of queued operations goes below the limit.API name:
max_write_buffer_size
-
maxWriteRequestOperationCount
The maximum number of operations per bulk write request executed on the follower.API name:
max_write_request_operation_count
-
maxWriteRequestSize
The maximum total bytes of operations per bulk write request executed on the follower.API name:
max_write_request_size
-
readPollTimeout
The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. Then the follower will immediately attempt to read from the leader again.API name:
read_poll_timeout
-
readPollTimeout
The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. Then the follower will immediately attempt to read from the leader again.API name:
read_poll_timeout
-
remoteCluster
Required - The remote cluster containing the leader index.API name:
remote_cluster
-
settings
Settings to override from the leader index.API name:
settings
-
settings
public final FollowRequest.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Settings to override from the leader index.API name:
settings
-
waitForActiveShards
Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be active. A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the remote Lucene segment files to the follower index.API name:
wait_for_active_shards
-
waitForActiveShards
public final FollowRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be active. A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the remote Lucene segment files to the follower index.API name:
wait_for_active_shards
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<FollowRequest.Builder>
-
build
Builds aFollowRequest
.- Specified by:
build
in interfaceObjectBuilder<FollowRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-