Class Translog
java.lang.Object
co.elastic.clients.elasticsearch.indices.Translog
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Translog extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Translog.Builder
Builder forTranslog
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Translog>
_DESERIALIZER
Json deserializer forTranslog
-
Method Summary
Modifier and Type Method Description TranslogDurability
durability()
Whether or not tofsync
and commit the translog after every index, delete, update, or bulk request.java.lang.String
flushThresholdSize()
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
of(java.util.function.Function<Translog.Builder,ObjectBuilder<Translog>> fn)
TranslogRetention
retention()
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
setupTranslogDeserializer(ObjectDeserializer<Translog.Builder> op)
Time
syncInterval()
How often the translog is fsynced to disk and committed, regardless of write operations.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTranslog
-
-
Method Details
-
of
public static Translog of(java.util.function.Function<Translog.Builder,ObjectBuilder<Translog>> fn) -
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
@Nullable public final java.lang.String 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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupTranslogDeserializer
-