Class TranslogRetention

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

@JsonpDeserializable
public class TranslogRetention
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

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

      @Nullable public final java.lang.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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupTranslogRetentionDeserializer

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