public class BasicRetryCondition extends Object implements IRetryCondition
| Constructor and Description |
|---|
BasicRetryCondition() |
BasicRetryCondition(int pMaxExecutions,
Class<? extends Exception>... pExceptions) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Exception>[] |
getExceptions() |
int |
getMaxExecutions() |
void |
setExceptions(Class<? extends Exception>... pExceptions) |
void |
setMaxExecutions(int pMaxExecutions) |
<T> boolean |
shouldRetry(Callable<T> pCallable,
int pExecutions,
Throwable pException) |
public void setMaxExecutions(int pMaxExecutions)
public int getMaxExecutions()
public <T> boolean shouldRetry(Callable<T> pCallable, int pExecutions, Throwable pException)
shouldRetry in interface IRetryConditionlpezet