Uses of Interface
com.couchbase.client.core.retry.reactor.Retry
Package | Description |
---|---|
com.couchbase.client.core.retry.reactor |
-
Uses of Retry in com.couchbase.client.core.retry.reactor
Classes in com.couchbase.client.core.retry.reactor that implement Retry Modifier and Type Class Description class
DefaultRetry<T>
Methods in com.couchbase.client.core.retry.reactor that return Retry Modifier and Type Method Description static <T> Retry<T>
Retry. allBut(Class<? extends Throwable>... nonRetriableExceptions)
Returns a retry function that retries errors resulting from all exceptions except the specified non-retriable exceptions, once.static <T> Retry<T>
Retry. any()
Returns a retry function that retries any exception, once.static <T> Retry<T>
Retry. anyOf(Class<? extends Throwable>... retriableExceptions)
Returns a retry function that retries errors resulting from any of the specified exceptions, once.Retry<T>
DefaultRetry. backoff(Backoff backoff)
Retry<T>
Retry. backoff(Backoff backoff)
Returns a retry function with backoff delay.Retry<T>
DefaultRetry. doOnRetry(Consumer<? super RetryContext<T>> onRetry)
Retry<T>
Retry. doOnRetry(Consumer<? super RetryContext<T>> onRetry)
Returns a retry function that invokes the provided onRetry callback before every retry.default Retry<T>
Retry. exponentialBackoff(Duration firstBackoff, Duration maxBackoff)
Returns a retry function with exponential backoff delay.default Retry<T>
Retry. exponentialBackoffWithJitter(Duration firstBackoff, Duration maxBackoff)
Returns a retry function with full jitter backoff strategy.default Retry<T>
Retry. fixedBackoff(Duration backoffInterval)
Returns a retry function with fixed backoff delay.Retry<T>
DefaultRetry. jitter(Jitter jitter)
Retry<T>
Retry. jitter(Jitter jitter)
Returns a retry function that applies jitter to the backoff delay.default Retry<T>
Retry. noBackoff()
Returns a retry function with no backoff delay.static <T> Retry<T>
Retry. onlyIf(Predicate<? super RetryContext<T>> predicate)
Retry function that retries only if the predicate returns true, with no limit to the number of attempts.default Retry<T>
Retry. randomBackoff(Duration firstBackoff, Duration maxBackoff)
Returns a retry function with random de-correlated jitter backoff strategy.Retry<T>
DefaultRetry. retryMax(long maxIterations)
Retry<T>
Retry. retryMax(long maxRetries)
Retry function that retries n times.default Retry<T>
Retry. retryOnce()
Retry function that retries once.Retry<T>
DefaultRetry. timeout(Duration timeout)
Retry<T>
Retry. timeout(Duration timeout)
Returns a retry function with timeout.Retry<T>
DefaultRetry. withApplicationContext(T applicationContext)
Retry<T>
Retry. withApplicationContext(T applicationContext)
Returns a retry function with an application context that may be used to perform any rollbacks before a retry.Retry<T>
DefaultRetry. withBackoffScheduler(Scheduler scheduler)
Retry<T>
Retry. withBackoffScheduler(Scheduler scheduler)
Returns a retry function that uses the scheduler provided for backoff delays.