@NotThreadSafe public static class WriteOptions.Builder extends Object
WriteOptions.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WriteOptions.Builder |
backpressureStrategy(io.reactivex.rxjava3.core.BackpressureOverflowStrategy backpressureStrategy)
Set the strategy to deal with buffer overflow when using onBackpressureBuffer.
|
WriteOptions.Builder |
batchSize(int batchSize)
Set the number of data point to collect in batch.
|
WriteOptions.Builder |
bufferLimit(int bufferLimit)
The client maintains a buffer for failed writes so that the writes will be retried later on.
|
WriteOptions |
build()
Build an instance of WriteOptions.
|
WriteOptions.Builder |
exponentialBase(int exponentialBase)
The base for the exponential retry delay.
|
WriteOptions.Builder |
flushInterval(int flushInterval)
Set the time to wait at most (milliseconds).
|
WriteOptions.Builder |
jitterInterval(int jitterInterval)
Jitters the batch flush interval by a random amount.
|
WriteOptions.Builder |
maxRetries(int maxRetries)
The number of max retries when write fails.
|
WriteOptions.Builder |
maxRetryDelay(int maxRetryDelay)
The maximum delay between each retry attempt in milliseconds.
|
WriteOptions.Builder |
maxRetryTime(int maxRetryTime)
The maximum total retry timeout in milliseconds.
|
WriteOptions.Builder |
retryInterval(int retryInterval)
Set the the time to wait before retry unsuccessful write (milliseconds).
|
WriteOptions.Builder |
writeScheduler(io.reactivex.rxjava3.core.Scheduler writeScheduler)
Set the scheduler which is used for write data points.
|
@Nonnull public WriteOptions.Builder batchSize(int batchSize)
batchSize - the number of data point to collect in batchthis@Nonnull public WriteOptions.Builder flushInterval(int flushInterval)
flushInterval - the time to wait at most (milliseconds).this@Nonnull public WriteOptions.Builder jitterInterval(int jitterInterval)
jitterInterval - (milliseconds)this@Nonnull public WriteOptions.Builder retryInterval(int retryInterval)
retryInterval - the time to wait before retry unsuccessful writethis@Nonnull public WriteOptions.Builder maxRetries(int maxRetries)
maxRetries - number of max retriesthis@Nonnull public WriteOptions.Builder maxRetryDelay(int maxRetryDelay)
maxRetryDelay - maximum delaythis@Nonnull public WriteOptions.Builder maxRetryTime(int maxRetryTime)
maxRetryTime - maximum timoutthis@Nonnull public WriteOptions.Builder exponentialBase(int exponentialBase)
exponentialBase - exponential basethis@Nonnull public WriteOptions.Builder bufferLimit(int bufferLimit)
bufferLimit - maximum number of points stored in the retry bufferthis@Nonnull public WriteOptions.Builder writeScheduler(@Nonnull io.reactivex.rxjava3.core.Scheduler writeScheduler)
Schedulers.newThread().writeScheduler - the scheduler which is used for write data points.this@Nonnull public WriteOptions.Builder backpressureStrategy(@Nonnull io.reactivex.rxjava3.core.BackpressureOverflowStrategy backpressureStrategy)
backpressureStrategy - the strategy to deal with buffer overflow when using onBackpressureBuffer.
Default BackpressureOverflowStrategy.DROP_OLDEST;this@Nonnull public WriteOptions build()
WriteOptionsCopyright © 2018–2023 InfluxData, Inc.. All rights reserved.