@ThreadSafe public final class WriteOptions extends Object
The default setting use the batching configured to (consistent with Telegraf):
The default backpressure strategy is BackpressureOverflowStrategy.DROP_OLDEST.
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteOptions.Builder
A builder for
WriteOptions. |
| Modifier and Type | Field and Description |
|---|---|
static WriteOptions |
DEFAULTS
Default configuration with values that are consistent with Telegraf.
|
| Modifier and Type | Method and Description |
|---|---|
static WriteOptions.Builder |
builder()
Creates a builder instance.
|
io.reactivex.BackpressureOverflowStrategy |
getBackpressureStrategy() |
int |
getBatchSize() |
int |
getBufferLimit() |
int |
getExponentialBase()
The base for the exponential retry delay.
|
int |
getFlushInterval() |
int |
getJitterInterval() |
int |
getMaxRetries()
The number of max retries when write fails.
|
int |
getMaxRetryDelay()
The maximum delay between each retry attempt in milliseconds.
|
int |
getRetryInterval()
The retry interval is used when the InfluxDB server does not specify "Retry-After" header.
|
io.reactivex.Scheduler |
getWriteScheduler() |
public static final WriteOptions DEFAULTS
public int getBatchSize()
WriteOptions.Builder.batchSize(int)public int getFlushInterval()
(int)public int getJitterInterval()
WriteOptions.Builder.jitterInterval(int)public int getRetryInterval()
WriteOptions.Builder.retryInterval(int)public int getMaxRetries()
WriteOptions.Builder.maxRetries(int)public int getMaxRetryDelay()
WriteOptions.Builder.maxRetryDelay(int)public int getExponentialBase()
WriteOptions.Builder.exponentialBase(int)public int getBufferLimit()
WriteOptions.Builder.bufferLimit(int)@Nonnull public io.reactivex.Scheduler getWriteScheduler()
WriteOptions.Builder.writeScheduler(Scheduler)@Nonnull public io.reactivex.BackpressureOverflowStrategy getBackpressureStrategy()
WriteOptions.Builder.backpressureStrategy(BackpressureOverflowStrategy)@Nonnull public static WriteOptions.Builder builder()
Copyright © 2018–2021 InfluxData, Inc.. All rights reserved.