Class TranslogRetention
java.lang.Object
co.elastic.clients.elasticsearch.indices.TranslogRetention
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TranslogRetention>
Json deserializer forTranslogRetention
-
Method Summary
Modifier and TypeMethodDescriptionfinal Time
age()
This controls the maximum duration for which translog files are kept by each shard.static TranslogRetention
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
size()
This controls the total size of translog files to keep for each shard.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTranslogRetention
-
-
Method Details
-
of
public static TranslogRetention of(Function<TranslogRetention.Builder, ObjectBuilder<TranslogRetention>> fn) -
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
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
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTranslogRetentionDeserializer
protected static void setupTranslogRetentionDeserializer(ObjectDeserializer<TranslogRetention.Builder> op)
-