Class Translog.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Translog.Builder>
co.elastic.clients.elasticsearch.indices.Translog.Builder
- All Implemented Interfaces:
WithJson<Translog.Builder>,ObjectBuilder<Translog>
- Enclosing class:
- Translog
public static class Translog.Builder
extends WithJsonObjectBuilderBase<Translog.Builder>
implements ObjectBuilder<Translog>
Builder for
Translog.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTranslog.final Translog.Builderdurability(TranslogDurability value) Whether or not tofsyncand commit the translog after every index, delete, update, or bulk request.final Translog.BuilderflushThresholdSize(String value) The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not part of a Lucene commit point).final Translog.Builderretention(TranslogRetention value) API name:retentionfinal Translog.BuilderAPI name:retentionprotected Translog.Builderself()final Translog.BuildersyncInterval(Time value) How often the translog is fsynced to disk and committed, regardless of write operations.final Translog.BuilderHow often the translog is fsynced to disk and committed, regardless of write operations.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
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 tofsyncand 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 -
retention
public final Translog.Builder retention(Function<TranslogRetention.Builder, ObjectBuilder<TranslogRetention>> fn) API name:retention -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Translog.Builder>
-
build
Builds aTranslog.- Specified by:
buildin interfaceObjectBuilder<Translog>- Throws:
NullPointerException- if some of the required fields are null.
-