Class DefaultRetry<T>
java.lang.Object
com.couchbase.client.core.retry.reactor.AbstractRetry<T,Throwable>
com.couchbase.client.core.retry.reactor.DefaultRetry<T>
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher
<Long> Deprecated.Deprecated.Returns a retry function with backoff delay.static <T> DefaultRetry
<T> create
(Predicate<? super RetryContext<T>> retryPredicate) Deprecated.doOnRetry
(Consumer<? super RetryContext<T>> onRetry) Deprecated.Returns a retry function that invokes the provided onRetry callback before every retry.Deprecated.Returns a retry function that applies jitter to the backoff delay.retryMax
(long maxIterations) Deprecated.Retry function that retries n times.Deprecated.Returns a retry function with timeout.toString()
Deprecated.withApplicationContext
(T applicationContext) Deprecated.Returns a retry function with an application context that may be used to perform any rollbacks before a retry.withBackoffScheduler
(Scheduler scheduler) Deprecated.Returns a retry function that uses the scheduler provided for backoff delays.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.retry.reactor.Retry
apply, exponentialBackoff, exponentialBackoffWithJitter, fixedBackoff, noBackoff, randomBackoff, retryOnce, toReactorRetry
-
Method Details
-
create
Deprecated. -
withApplicationContext
Deprecated.Description copied from interface:Retry
Returns a retry function with an application context that may be used to perform any rollbacks before a retry. This application context is provided to any retry predicateRetry.onlyIf(Predicate)
, custom backoff functionRetry.backoff(Backoff)
and retry callbackRetry.doOnRetry(Consumer)
. All other properties of this retry function are retained in the returned instance.- Specified by:
withApplicationContext
in interfaceRetry<T>
- Parameters:
applicationContext
- Application context- Returns:
- retry function with associated application context
-
doOnRetry
Deprecated.Description copied from interface:Retry
Returns a retry function that invokes the provided onRetry callback before every retry. TheRetryContext
provided to the callback contains the iteration and the any application context set usingRetry.withApplicationContext(Object)
. All other properties of this retry function are retained in the returned instance. -
retryMax
Deprecated.Description copied from interface:Retry
Retry function that retries n times. -
timeout
Deprecated.Description copied from interface:Retry
Returns a retry function with timeout. The timeout starts from the instant that this function is applied, and the function keeps retrying until the timeout expires (or until the configured maximum number of attempts, if it has been set). All other properties of this retry function are retained in the returned instance. -
backoff
Deprecated.Description copied from interface:Retry
Returns a retry function with backoff delay. All other properties of this retry function are retained in the returned instance. -
jitter
Deprecated.Description copied from interface:Retry
Returns a retry function that applies jitter to the backoff delay. All other properties of this retry function are retained in the returned instance. -
withBackoffScheduler
Deprecated.Description copied from interface:Retry
Returns a retry function that uses the scheduler provided for backoff delays. All other properties of this retry function are retained in the returned instance.- Specified by:
withBackoffScheduler
in interfaceRetry<T>
- Parameters:
scheduler
- the scheduler for backoff delays- Returns:
- retry function with backoff scheduler
-
apply
Deprecated. -
toString
Deprecated.
-
RetrySpec
andRetryBackoffSpec
instead.