public abstract class Retry
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Retry.Retryable<R> |
| Constructor and Description |
|---|
Retry() |
| Modifier and Type | Method and Description |
|---|---|
protected <R> R |
_retry(java.lang.Throwable exception,
Retry.Retryable<R> call) |
int |
getLimit() |
<R> R |
retry(Retry.Retryable<R> call) |
<R> R |
retry(java.lang.Throwable exception,
Retry.Retryable<R> call) |
void |
setLimit(int limit) |
abstract boolean |
shouldRetry(java.lang.Throwable th) |
public int getLimit()
public void setLimit(int limit)
public abstract boolean shouldRetry(java.lang.Throwable th)
public <R> R retry(Retry.Retryable<R> call) throws java.lang.Throwable
java.lang.Throwablepublic <R> R retry(java.lang.Throwable exception,
Retry.Retryable<R> call)
throws java.lang.Throwable
java.lang.Throwableprotected <R> R _retry(java.lang.Throwable exception,
Retry.Retryable<R> call)
throws java.lang.Throwable
java.lang.Throwable