public interface Retryable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
attempt(int attempt) |
boolean |
shouldRetry(int attempt,
java.lang.Throwable e)
Decides whether a retry should be attempted after the provided exception occurs
|
T attempt(int attempt) throws java.lang.Exception
java.lang.Exceptionboolean shouldRetry(int attempt,
java.lang.Throwable e)
attempt - the attempt numbere - the thrown exceptionCopyright © 2014. All Rights Reserved.