@PublicEvolving public static class MongoWriteOptions.MongoWriteOptionsBuilder extends Object
MongoWriteOptions.| Modifier and Type | Method and Description |
|---|---|
MongoWriteOptions |
build()
Build the
MongoWriteOptions. |
MongoWriteOptions.MongoWriteOptionsBuilder |
setBatchIntervalMs(long batchIntervalMs)
Sets the batch flush interval, in milliseconds.
|
MongoWriteOptions.MongoWriteOptionsBuilder |
setBatchSize(int batchSize)
Sets the maximum number of actions to buffer for each batch request.
|
MongoWriteOptions.MongoWriteOptionsBuilder |
setDeliveryGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee)
Sets the wanted
DeliveryGuarantee. |
MongoWriteOptions.MongoWriteOptionsBuilder |
setMaxRetries(int maxRetries)
Sets the max retry times if writing records failed.
|
MongoWriteOptions.MongoWriteOptionsBuilder |
setRetryIntervalMs(long retryIntervalMs)
Sets the retry interval if writing records to database failed.
|
public MongoWriteOptions.MongoWriteOptionsBuilder setBatchSize(int batchSize)
batchSize - the maximum number of actions to buffer for each batch request.public MongoWriteOptions.MongoWriteOptionsBuilder setBatchIntervalMs(long batchIntervalMs)
batchIntervalMs - the batch flush interval, in milliseconds.public MongoWriteOptions.MongoWriteOptionsBuilder setMaxRetries(int maxRetries)
maxRetries - the max retry times.public MongoWriteOptions.MongoWriteOptionsBuilder setRetryIntervalMs(long retryIntervalMs)
retryIntervalMs - the retry time interval, in milliseconds.public MongoWriteOptions.MongoWriteOptionsBuilder setDeliveryGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee)
DeliveryGuarantee. The default delivery guarantee is DeliveryGuarantee.AT_LEAST_ONCEdeliveryGuarantee - which describes the record emission behaviourpublic MongoWriteOptions build()
MongoWriteOptions.Copyright © 2022–2025 The Apache Software Foundation. All rights reserved.