Class PutAutoFollowPatternRequest

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

@JsonpDeserializable
public class PutAutoFollowPatternRequest
extends RequestBase
implements JsonpSerializable
Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • followIndexPattern

      @Nullable public final java.lang.String followIndexPattern()
      The name of follower index. The template {{leader_index}} can be used to derive the name of the follower index from the name of the leader index. When following a data stream, use {{leader_index}}; CCR does not support changes to the names of a follower data stream’s backing indices.

      API name: follow_index_pattern

    • leaderIndexExclusionPatterns

      public final java.util.List<java.lang.String> leaderIndexExclusionPatterns()
      An array of simple index patterns that can be used to exclude indices from being auto-followed. Indices in the remote cluster whose names are matching one or more leader_index_patterns and one or more leader_index_exclusion_patterns won’t be followed.

      API name: leader_index_exclusion_patterns

    • leaderIndexPatterns

      public final java.util.List<java.lang.String> leaderIndexPatterns()
      An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.

      API name: leader_index_patterns

    • maxOutstandingReadRequests

      @Nullable public final java.lang.Integer maxOutstandingReadRequests()
      The maximum number of outstanding reads requests from the remote cluster.

      API name: max_outstanding_read_requests

    • maxOutstandingWriteRequests

      @Nullable public final java.lang.Integer maxOutstandingWriteRequests()
      The maximum number of outstanding reads requests from the remote cluster.

      API name: max_outstanding_write_requests

    • maxReadRequestOperationCount

      @Nullable public final java.lang.Integer maxReadRequestOperationCount()
      The maximum number of operations to pull per read from the remote cluster.

      API name: max_read_request_operation_count

    • maxReadRequestSize

      @Nullable public final java.lang.String 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

      @Nullable public final Time 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

      @Nullable public final java.lang.Integer 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

      @Nullable public final java.lang.String 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

      @Nullable public final java.lang.Integer maxWriteRequestOperationCount()
      The maximum number of operations per bulk write request executed on the follower.

      API name: max_write_request_operation_count

    • maxWriteRequestSize

      @Nullable public final java.lang.String maxWriteRequestSize()
      The maximum total bytes of operations per bulk write request executed on the follower.

      API name: max_write_request_size

    • name

      public final java.lang.String name()
      Required - The name of the collection of auto-follow patterns.

      API name: name

    • readPollTimeout

      @Nullable public final Time 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

      public final java.lang.String remoteCluster()
      Required - The remote cluster containing the leader indices to match against.

      API name: remote_cluster

    • settings

      public final java.util.Map<java.lang.String,​JsonData> settings()
      Settings to override from the leader index. Note that certain settings can not be overrode (e.g., index.number_of_shards).

      API name: settings

    • 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)
    • setupPutAutoFollowPatternRequestDeserializer

      protected static void setupPutAutoFollowPatternRequestDeserializer​(ObjectDeserializer<PutAutoFollowPatternRequest.Builder> op)