Package | Description |
---|---|
org.spf4j.base |
Modifier and Type | Method and Description |
---|---|
static <T> T |
Callables.executeWithRetry(Callables.TimeoutCallable<T> what,
Callables.PreRetryCallback<T> doBeforeRetry,
int nrImmediateRetries,
int maxWaitMillis,
com.google.common.base.Predicate<? super T> retryOnReturnVal,
com.google.common.base.Predicate<Exception> retryOnException)
After the immediate retries are done,
delayed retry with randomized Fibonacci values up to the specified max is executed.
|
static <T> T |
Callables.executeWithRetry(Callables.TimeoutCallable<T> what,
int nrImmediateRetries,
int maxRetryWaitMillis) |
static <T> T |
Callables.executeWithRetry(Callables.TimeoutCallable<T> what,
int nrImmediateRetries,
int maxRetryWaitMillis,
com.google.common.base.Predicate<? super T> retryOnReturnVal,
com.google.common.base.Predicate<Exception> retryOnException) |
static <T> T |
Callables.executeWithRetry(Callables.TimeoutCallable<T> what,
int nrImmediateRetries,
int maxRetryWaitMillis,
com.google.common.base.Predicate<Exception> retryOnException) |
Copyright © 2014. All rights reserved.