public static final class Retry.RetryWithBackoff
extends java.lang.Object
Retry.withExpBackoff(long, int, int) to set the retry schedule.
Used to invoke retryingOn(Class). Note this object is reusable so this can be done more than once.| Modifier and Type | Method and Description |
|---|---|
<RetryT extends java.lang.Exception> |
retryingOn(java.lang.Class<RetryT> retryType) |
Retry.RetryAndThrowConditionally |
retryWhen(java.util.function.Predicate<java.lang.Throwable> predicate) |
public <RetryT extends java.lang.Exception> Retry.RetryExceptionally<RetryT> retryingOn(java.lang.Class<RetryT> retryType)
public Retry.RetryAndThrowConditionally retryWhen(java.util.function.Predicate<java.lang.Throwable> predicate)