Class FollowRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ccr.FollowRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class FollowRequest
extends RequestBase
implements JsonpSerializable
Creates a new follower index configured to follow the referenced leader index.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static FollowRequest of​(java.util.function.Function<FollowRequest.Builder,​ObjectBuilder<FollowRequest>> fn)
    • index

      public final java.lang.String index()
      Required - The name of the follower index

      API name: index

    • leaderIndex

      @Nullable public final java.lang.String leaderIndex()
      API name: leader_index
    • maxOutstandingReadRequests

      @Nullable public final java.lang.Long maxOutstandingReadRequests()
      API name: max_outstanding_read_requests
    • maxOutstandingWriteRequests

      @Nullable public final java.lang.Long maxOutstandingWriteRequests()
      API name: max_outstanding_write_requests
    • maxReadRequestOperationCount

      @Nullable public final java.lang.Long maxReadRequestOperationCount()
      API name: max_read_request_operation_count
    • maxReadRequestSize

      @Nullable public final java.lang.String maxReadRequestSize()
      API name: max_read_request_size
    • maxRetryDelay

      @Nullable public final Time maxRetryDelay()
      API name: max_retry_delay
    • maxWriteBufferCount

      @Nullable public final java.lang.Long maxWriteBufferCount()
      API name: max_write_buffer_count
    • maxWriteBufferSize

      @Nullable public final java.lang.String maxWriteBufferSize()
      API name: max_write_buffer_size
    • maxWriteRequestOperationCount

      @Nullable public final java.lang.Long maxWriteRequestOperationCount()
      API name: max_write_request_operation_count
    • maxWriteRequestSize

      @Nullable public final java.lang.String maxWriteRequestSize()
      API name: max_write_request_size
    • readPollTimeout

      @Nullable public final Time readPollTimeout()
      API name: read_poll_timeout
    • remoteCluster

      @Nullable public final java.lang.String remoteCluster()
      API name: remote_cluster
    • waitForActiveShards

      @Nullable public final WaitForActiveShards waitForActiveShards()
      Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all 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

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupFollowRequestDeserializer

      protected static void setupFollowRequestDeserializer​(ObjectDeserializer<FollowRequest.Builder> op)