Class TranslogRetention.Builder

All Implemented Interfaces:
WithJson<TranslogRetention.Builder>, ObjectBuilder<TranslogRetention>
Enclosing class:
TranslogRetention

public static class TranslogRetention.Builder extends WithJsonObjectBuilderBase<TranslogRetention.Builder> implements ObjectBuilder<TranslogRetention>
Builder for TranslogRetention.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • size

      public final TranslogRetention.Builder size(@Nullable String value)
      This controls the total size of translog files to keep for each shard. Keeping more translog files increases the chance of performing an operation based sync when recovering a replica. If the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch versions 7.0.0 and later.

      API name: size

    • age

      public final TranslogRetention.Builder age(@Nullable Time value)
      This controls the maximum duration for which translog files are kept by each shard. Keeping more translog files increases the chance of performing an operation based sync when recovering replicas. If the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch versions 7.0.0 and later.

      API name: age

    • age

      This controls the maximum duration for which translog files are kept by each shard. Keeping more translog files increases the chance of performing an operation based sync when recovering replicas. If the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch versions 7.0.0 and later.

      API name: age

    • self

      protected TranslogRetention.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<TranslogRetention.Builder>
    • build

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