Class FollowRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ccr.FollowRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class FollowRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FollowRequest.Builder
Builder forFollowRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FollowRequest>
_DESERIALIZER
Json deserializer forFollowRequest
static Endpoint<FollowRequest,FollowResponse,ElasticsearchError>
ENDPOINT
Endpoint "ccr.follow
". -
Constructor Summary
Constructors Constructor Description FollowRequest(FollowRequest.Builder builder)
FollowRequest(java.util.function.Function<FollowRequest.Builder,FollowRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
index()
Required - The name of the follower indexjava.lang.String
leaderIndex()
API name:leader_index
java.lang.Long
maxOutstandingReadRequests()
API name:max_outstanding_read_requests
java.lang.Long
maxOutstandingWriteRequests()
API name:max_outstanding_write_requests
java.lang.Long
maxReadRequestOperationCount()
API name:max_read_request_operation_count
java.lang.String
maxReadRequestSize()
API name:max_read_request_size
java.lang.String
maxRetryDelay()
API name:max_retry_delay
java.lang.Long
maxWriteBufferCount()
API name:max_write_buffer_count
java.lang.String
maxWriteBufferSize()
API name:max_write_buffer_size
java.lang.Long
maxWriteRequestOperationCount()
API name:max_write_request_operation_count
java.lang.String
maxWriteRequestSize()
API name:max_write_request_size
java.lang.String
readPollTimeout()
API name:read_poll_timeout
java.lang.String
remoteCluster()
API name:remote_cluster
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupFollowRequestDeserializer(DelegatingDeserializer<FollowRequest.Builder> op)
jakarta.json.JsonValue
waitForActiveShards()
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
-
Field Details
-
_DESERIALIZER
Json deserializer forFollowRequest
-
ENDPOINT
Endpoint "ccr.follow
".
-
-
Constructor Details
-
FollowRequest
-
FollowRequest
-
-
Method Details
-
index
public java.lang.String index()Required - The name of the follower indexAPI name:
index
-
waitForActiveShards
@Nullable public jakarta.json.JsonValue 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
@Nullable public java.lang.String leaderIndex()API name:leader_index
-
maxOutstandingReadRequests
@Nullable public java.lang.Long maxOutstandingReadRequests()API name:max_outstanding_read_requests
-
maxOutstandingWriteRequests
@Nullable public java.lang.Long maxOutstandingWriteRequests()API name:max_outstanding_write_requests
-
maxReadRequestOperationCount
@Nullable public java.lang.Long maxReadRequestOperationCount()API name:max_read_request_operation_count
-
maxReadRequestSize
@Nullable public java.lang.String maxReadRequestSize()API name:max_read_request_size
-
maxRetryDelay
@Nullable public java.lang.String maxRetryDelay()API name:max_retry_delay
-
maxWriteBufferCount
@Nullable public java.lang.Long maxWriteBufferCount()API name:max_write_buffer_count
-
maxWriteBufferSize
@Nullable public java.lang.String maxWriteBufferSize()API name:max_write_buffer_size
-
maxWriteRequestOperationCount
@Nullable public java.lang.Long maxWriteRequestOperationCount()API name:max_write_request_operation_count
-
maxWriteRequestSize
@Nullable public java.lang.String maxWriteRequestSize()API name:max_write_request_size
-
readPollTimeout
@Nullable public java.lang.String readPollTimeout()API name:read_poll_timeout
-
remoteCluster
@Nullable public java.lang.String remoteCluster()API name:remote_cluster
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupFollowRequestDeserializer
protected static void setupFollowRequestDeserializer(DelegatingDeserializer<FollowRequest.Builder> op)
-