Class TranslogRetention.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TranslogRetention.Builder>
co.elastic.clients.elasticsearch.indices.TranslogRetention.Builder
- All Implemented Interfaces:
WithJson<TranslogRetention.Builder>
,ObjectBuilder<TranslogRetention>
- Enclosing class:
- TranslogRetention
public static class TranslogRetention.Builder
extends WithJsonObjectBuilderBase<TranslogRetention.Builder>
implements ObjectBuilder<TranslogRetention>
Builder for
TranslogRetention
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis controls the maximum duration for which translog files are kept by each shard.age
(Function<Time.Builder, ObjectBuilder<Time>> fn) This controls the maximum duration for which translog files are kept by each shard.build()
Builds aTranslogRetention
.protected TranslogRetention.Builder
self()
This controls the total size of translog files to keep for each shard.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TranslogRetention.Builder>
-
build
Builds aTranslogRetention
.- Specified by:
build
in interfaceObjectBuilder<TranslogRetention>
- Throws:
NullPointerException
- if some of the required fields are null.
-