Package | Description |
---|---|
org.spf4j.failsafe |
This package contains operation retry utilities.
|
org.spf4j.failsafe.concurrent |
Modifier and Type | Field and Description |
---|---|
static RetryPredicate |
RetryPredicate.NORETRY
Simple predicate that does not retry anything.
|
Modifier and Type | Method and Description |
---|---|
RetryPredicate<T,C> |
RetryPolicy.getRetryPredicate(long startTimeNanos,
long deadlineNanos) |
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception,C extends Callable<? extends T>> |
SyncRetryExecutor.call(C pwhat,
RetryPredicate<T,C> retryPredicate,
Class<E> exceptionClass,
int maxExceptionChain)
Naive implementation of execution with retry logic.
|
Modifier and Type | Method and Description |
---|---|
<A,C extends Callable<? extends A>> |
RetryExecutor.execute(C command,
RetryPredicate<A,C> predicate) |
void |
RetryExecutor.execute(Runnable command,
RetryPredicate<Void,Callable<Void>> predicate) |
<A,C extends Callable<? extends A>> |
RetryExecutor.submit(C task,
RetryPredicate<A,C> predicate) |
<A> Future<A> |
RetryExecutor.submit(Runnable task,
A result,
RetryPredicate<A,? extends Callable<? extends A>> predicate) |
Future<?> |
RetryExecutor.submit(Runnable task,
RetryPredicate<Void,Callable<Void>> predicate) |
Copyright © 2018 SPF4J. All rights reserved.