Class FollowRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ccr.FollowRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<FollowRequest>
- Enclosing class:
- FollowRequest
public static class FollowRequest.Builder extends java.lang.Object implements ObjectBuilder<FollowRequest>
Builder for
FollowRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description FollowRequest
build()
Builds aFollowRequest
.FollowRequest.Builder
index(java.lang.String value)
Required - The name of the follower indexFollowRequest.Builder
leaderIndex(java.lang.String value)
API name:leader_index
FollowRequest.Builder
maxOutstandingReadRequests(java.lang.Long value)
API name:max_outstanding_read_requests
FollowRequest.Builder
maxOutstandingWriteRequests(java.lang.Long value)
API name:max_outstanding_write_requests
FollowRequest.Builder
maxReadRequestOperationCount(java.lang.Long value)
API name:max_read_request_operation_count
FollowRequest.Builder
maxReadRequestSize(java.lang.String value)
API name:max_read_request_size
FollowRequest.Builder
maxRetryDelay(java.lang.String value)
API name:max_retry_delay
FollowRequest.Builder
maxWriteBufferCount(java.lang.Long value)
API name:max_write_buffer_count
FollowRequest.Builder
maxWriteBufferSize(java.lang.String value)
API name:max_write_buffer_size
FollowRequest.Builder
maxWriteRequestOperationCount(java.lang.Long value)
API name:max_write_request_operation_count
FollowRequest.Builder
maxWriteRequestSize(java.lang.String value)
API name:max_write_request_size
FollowRequest.Builder
readPollTimeout(java.lang.String value)
API name:read_poll_timeout
FollowRequest.Builder
remoteCluster(java.lang.String value)
API name:remote_cluster
FollowRequest.Builder
waitForActiveShards(jakarta.json.JsonValue value)
Sets the number of shard copies that must be active before returning.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - The name of the follower indexAPI name:
index
-
waitForActiveShards
Sets the number of shard copies that must be active before returning. Defaults to 0. Set toall
for 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
-
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
-
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
-
remoteCluster
API name:remote_cluster
-
build
Builds aFollowRequest
.- Specified by:
build
in interfaceObjectBuilder<FollowRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-