public static class AnalyticsIngester.IngestOptions extends Object
Modifier and Type | Method and Description |
---|---|
AnalyticsIngester.IngestOptions |
analyticsTimeout(long timeout,
TimeUnit timeUnit)
Customizes the timeout used for the analytics query.
|
AnalyticsIngester.IngestOptions |
dataConverter(rx.functions.Func1<JsonObject,JsonObject> dataConverter)
Allows to specify a custom converter which modifies each document from the query
before it is stored back in the kv service.
|
AnalyticsIngester.IngestOptions |
idGenerator(rx.functions.Func1<JsonObject,String> idGenerator)
Allows to specify a custom ID generator instead of the default UUID one.
|
AnalyticsIngester.IngestOptions |
ignoreIngestError(boolean ignoreIngestError)
Allows to ignore individual kv mutation failures and keep going.
|
AnalyticsIngester.IngestOptions |
ingestMethod(AnalyticsIngester.IngestMethod ingestMethod)
Allows to customize the ingest method used for each kv operation.
|
static AnalyticsIngester.IngestOptions |
ingestOptions()
Create ingest options to modify default behavior.
|
AnalyticsIngester.IngestOptions |
kvTimeout(long timeout,
TimeUnit timeUnit)
Customizes the timeout used for each kv mutation operation.
|
AnalyticsIngester.IngestOptions |
retryBuilder(RetryBuilder retryBuilder)
Allows to customize the retry strategy in use for each individual
kv operation.
|
public static AnalyticsIngester.IngestOptions ingestOptions()
public AnalyticsIngester.IngestOptions analyticsTimeout(long timeout, TimeUnit timeUnit)
timeout
- the timeout for the analytics op.timeUnit
- the timeunit for the timeout.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions kvTimeout(long timeout, TimeUnit timeUnit)
timeout
- the timeout for the kv op.timeUnit
- the timeunit for the timeout.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions ingestMethod(AnalyticsIngester.IngestMethod ingestMethod)
ingestMethod
- the ingest method to use.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions ignoreIngestError(boolean ignoreIngestError)
ignoreIngestError
- true if should be ignored.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions retryBuilder(RetryBuilder retryBuilder)
retryBuilder
- the retry builder to use.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions idGenerator(rx.functions.Func1<JsonObject,String> idGenerator)
idGenerator
- the id generator to use.AnalyticsIngester.IngestOptions
for chaining purposes.public AnalyticsIngester.IngestOptions dataConverter(rx.functions.Func1<JsonObject,JsonObject> dataConverter)
dataConverter
- the converter to use.AnalyticsIngester.IngestOptions
for chaining purposes.Copyright © 2015 Couchbase, Inc.