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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TranslogRetention.Builder
age(Time value)
This controls the maximum duration for which translog files are kept by each shard.TranslogRetention.Builder
age(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
This controls the maximum duration for which translog files are kept by each shard.TranslogRetention
build()
Builds aTranslogRetention
.protected TranslogRetention.Builder
self()
TranslogRetention.Builder
size(java.lang.String value)
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public final TranslogRetention.Builder age(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)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:
java.lang.NullPointerException
- if some of the required fields are null.
-