@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 |
getFlushInterval() |
int |
getJitterInterval() |
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 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–2020 InfluxData, Inc.. All rights reserved.