public abstract class BoundedExponentialRetryCallable<T> extends RetryableCallable<T>
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_RETRIES |
protected static long |
MAX_SLEEP |
protected static long |
MIN_SLEEP |
Constructor and Description |
---|
BoundedExponentialRetryCallable() |
BoundedExponentialRetryCallable(long minSleep,
long maxSleep,
int maxNumRetries) |
Modifier and Type | Method and Description |
---|---|
T |
call() |
forEachExecution, retriableCall, set
protected static final long MAX_SLEEP
protected static final long MIN_SLEEP
protected static final int MAX_RETRIES
public BoundedExponentialRetryCallable()
public BoundedExponentialRetryCallable(long minSleep, long maxSleep, int maxNumRetries)
public T call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable<T>
call
in class RetryableCallable<T>
java.lang.Exception