Class FollowerIndexParameters.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowerIndexParameters.Builder>
co.elastic.clients.elasticsearch.ccr.follow_info.FollowerIndexParameters.Builder
- All Implemented Interfaces:
WithJson<FollowerIndexParameters.Builder>,ObjectBuilder<FollowerIndexParameters>
- Enclosing class:
- FollowerIndexParameters
public static class FollowerIndexParameters.Builder
extends WithJsonObjectBuilderBase<FollowerIndexParameters.Builder>
implements ObjectBuilder<FollowerIndexParameters>
Builder for
FollowerIndexParameters.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFollowerIndexParameters.maxOutstandingReadRequests(Long value) The maximum number of outstanding reads requests from the remote cluster.The maximum number of outstanding write requests on the follower.The maximum number of operations to pull per read from the remote cluster.maxReadRequestSize(String value) The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.maxRetryDelay(Time value) The maximum time to wait before retrying an operation that failed exceptionally.The maximum time to wait before retrying an operation that failed exceptionally.maxWriteBufferCount(Integer value) The maximum number of operations that can be queued for writing.maxWriteBufferSize(String value) The maximum total bytes of operations that can be queued for writing.The maximum number of operations per bulk write request executed on the follower.maxWriteRequestSize(String value) The maximum total bytes of operations per bulk write request executed on the follower.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.The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.protected FollowerIndexParameters.Builderself()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
-
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
public final FollowerIndexParameters.Builder maxRetryDelay(Function<Time.Builder, ObjectBuilder<Time>> fn) 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
public final FollowerIndexParameters.Builder readPollTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FollowerIndexParameters.Builder>
-
build
Builds aFollowerIndexParameters.- Specified by:
buildin interfaceObjectBuilder<FollowerIndexParameters>- Throws:
NullPointerException- if some of the required fields are null.
-