Class 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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxOutstandingReadRequests

      public final FollowerIndexParameters.Builder maxOutstandingReadRequests(@Nullable Long value)
      The maximum number of outstanding reads requests from the remote cluster.

      API name: max_outstanding_read_requests

    • maxOutstandingWriteRequests

      public final FollowerIndexParameters.Builder maxOutstandingWriteRequests(@Nullable Integer value)
      The maximum number of outstanding write requests on the follower.

      API name: max_outstanding_write_requests

    • maxReadRequestOperationCount

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

      API name: max_read_request_operation_count

    • maxReadRequestSize

      public final FollowerIndexParameters.Builder maxReadRequestSize(@Nullable String value)
      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

      public final FollowerIndexParameters.Builder maxRetryDelay(@Nullable Time value)
      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

      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

      public final FollowerIndexParameters.Builder maxWriteBufferCount(@Nullable Integer value)
      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

      public final FollowerIndexParameters.Builder maxWriteBufferSize(@Nullable String value)
      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

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

      API name: max_write_request_operation_count

    • maxWriteRequestSize

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

      API name: max_write_request_size

    • readPollTimeout

      public final FollowerIndexParameters.Builder readPollTimeout(@Nullable Time value)
      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

      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:
      self in class WithJsonObjectBuilderBase<FollowerIndexParameters.Builder>
    • build

      public FollowerIndexParameters build()
      Specified by:
      build in interface ObjectBuilder<FollowerIndexParameters>
      Throws:
      NullPointerException - if some of the required fields are null.