Class TranslogRetention

java.lang.Object
co.elastic.clients.elasticsearch.indices.TranslogRetention
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class TranslogRetention extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • size

      @Nullable public final String size()
      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

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

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

      public String toString()
      Overrides:
      toString in class Object
    • setupTranslogRetentionDeserializer

      protected static void setupTranslogRetentionDeserializer(ObjectDeserializer<TranslogRetention.Builder> op)