Interface RetryContext<T>
-
- Type Parameters:
T
- Application context type
- All Superinterfaces:
IterationContext<T>
- All Known Implementing Classes:
DefaultContext
public interface RetryContext<T> extends IterationContext<T>
Context provided to retry predicateRetry.onlyIf(java.util.function.Predicate)
and the retry callbackRetry.doOnRetry(java.util.function.Consumer)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Throwable
exception()
Returns the exception from the last iteration.-
Methods inherited from interface com.couchbase.client.core.retry.reactor.IterationContext
applicationContext, backoff, iteration
-
-
-
-
Method Detail
-
exception
Throwable exception()
Returns the exception from the last iteration.- Returns:
- exception that resulted in retry
-
-