Package | Description |
---|---|
org.spf4j.base | |
org.spf4j.failsafe |
This package contains operation retry utilities.
|
Modifier and Type | Field and Description |
---|---|
static Callables.AdvancedRetryPredicate<Exception> |
Callables.DEFAULT_EXCEPTION_RETRY
Deprecated.
use RetryPolicy
|
static Callables.AdvancedRetryPredicate<?> |
Callables.AdvancedRetryPredicate.NO_RETRY
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T,EX extends Exception> |
Callables.executeWithRetry(Callables.TimeoutCallable<T,EX> what,
int nrImmediateRetries,
int maxRetryWaitMillis,
Callables.AdvancedRetryPredicate<Exception> retryOnException,
Class<EX> exceptionClass)
Deprecated.
use RetryPolicy
|
static <T,EX extends Exception> |
Callables.executeWithRetry(Callables.TimeoutCallable<T,EX> what,
int nrImmediateRetries,
int maxWaitMillis,
Callables.TimeoutRetryPredicate<? super T,T> retryOnReturnVal,
Callables.AdvancedRetryPredicate<Exception> retryOnException,
Class<EX> exceptionClass)
Deprecated.
use RetryPolicy
|
static <T> T |
Callables.executeWithRetry(Callables.TimeoutCallable<T,RuntimeException> what,
int nrImmediateRetries,
int maxRetryWaitMillis,
Callables.AdvancedRetryPredicate<Exception> retryOnException)
Deprecated.
use RetryPolicy
|
static <T,EX extends Exception> |
CallablesNano.executeWithRetry(CallablesNano.NanoTimeoutCallable<T,EX> what,
int nrImmediateRetries,
long maxRetryWaitNanos,
Callables.AdvancedRetryPredicate<Exception> retryOnException,
Class<EX> exceptionClass)
Deprecated.
|
static <T,EX extends Exception> |
CallablesNano.executeWithRetry(CallablesNano.NanoTimeoutCallable<T,EX> what,
int nrImmediateRetries,
long maxWaitNanos,
CallablesNano.TimeoutNanoRetryPredicate<? super T,T> retryOnReturnVal,
Callables.AdvancedRetryPredicate<Exception> retryOnException,
Class<EX> exceptionClass)
Deprecated.
After the immediate retries are done, delayed retry with randomized Fibonacci values up to the specified max is
executed.
|
Constructor and Description |
---|
FibonacciBackoffRetryPredicate(Callables.AdvancedRetryPredicate<T> arp,
int nrImmediateRetries,
long minWaitUnits,
long maxWaitUnits,
Function<T,?> mapper,
long deadline,
LongSupplier currTimeSuplier,
TimeUnit tu)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PartialExceptionRetryPredicate<?,? extends Callable<?>> |
PartialExceptionRetryPredicate.from(Callables.AdvancedRetryPredicate<Exception> oldStyle)
Deprecated.
use this method to migrate from deprecated API to new APIs (failsafe)
|
Copyright © 2018 SPF4J. All rights reserved.