Class Translog
java.lang.Object
co.elastic.clients.elasticsearch.indices.Translog
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<Translog>
Json deserializer forTranslog
-
Method Summary
Modifier and TypeMethodDescriptionfinal TranslogDurability
Whether or not tofsync
and commit the translog after every index, delete, update, or bulk request.final String
The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not part of a Lucene commit point).static Translog
final TranslogRetention
API name:retention
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 Time
How often the translog is fsynced to disk and committed, regardless of write operations.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTranslog
-
-
Method Details
-
of
-
syncInterval
How often the translog is fsynced to disk and committed, regardless of write operations. Values less than 100ms are not allowed.API name:
sync_interval
-
durability
Whether or not tofsync
and commit the translog after every index, delete, update, or bulk request.API name:
durability
-
flushThresholdSize
The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not part of a Lucene commit point). Although these operations are available for reads, they will need to be replayed if the shard was stopped and had to be recovered. This setting controls the maximum total size of these operations, to prevent recoveries from taking too long. Once the maximum size has been reached a flush will happen, generating a new Lucene commit point.API name:
flush_threshold_size
-
retention
API name:retention
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTranslogDeserializer
-