Package | Description |
---|---|
com.couchbase.client.java.util | |
com.couchbase.client.java.util.retry |
Modifier and Type | Method and Description |
---|---|
AnalyticsIngester.IngestOptions |
AnalyticsIngester.IngestOptions.retryBuilder(RetryBuilder retryBuilder)
Allows to customize the retry strategy in use for each individual
kv operation.
|
Modifier and Type | Method and Description |
---|---|
static RetryBuilder |
RetryBuilder.allBut(Class<? extends Throwable>... types)
Only errors that are NOT instanceOf the specified types will trigger a retry
|
static RetryBuilder |
RetryBuilder.any()
Any error will trigger a retry
|
static RetryBuilder |
RetryBuilder.anyMatches(rx.functions.Func1<Throwable,Boolean> retryErrorPredicate)
Any error that pass the predicate will trigger a retry
|
static RetryBuilder |
RetryBuilder.anyOf(Class<? extends Throwable>... types)
Only errors that are instanceOf the specified types will trigger a retry
|
RetryBuilder |
RetryBuilder.delay(Delay delay)
Customize the retry
Delay |
RetryBuilder |
RetryBuilder.delay(Delay delay,
rx.Scheduler scheduler)
Set both the
Delay and the Scheduler on which the delay is waited. |
RetryBuilder |
RetryBuilder.delay(rx.Scheduler scheduler)
Use
Retry.DEFAULT_DELAY but wait on a specific Scheduler |
RetryBuilder |
RetryBuilder.doOnRetry(rx.functions.Action4<Integer,Throwable,Long,TimeUnit> doOnRetryAction)
Execute some code each time a retry is scheduled (at the moment the retriable exception
is caught, but before the retry delay is applied).
|
RetryBuilder |
RetryBuilder.max(int maxAttempts)
Make at most maxAttempts retry attempts.
|
RetryBuilder |
RetryBuilder.once()
Make only one retry attempt (default).
|
Copyright © 2015 Couchbase, Inc.