public interface SyncRetryExecutor<T,C extends Callable<? extends T>>
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Exception,C extends Callable<? extends T>> |
call(C pwhat,
RetryPredicate<T,C> retryPredicate,
Class<E> exceptionClass,
int maxExceptionChain)
Naive implementation of execution with retry logic.
|
default <R extends T,W extends C,E extends Exception> |
call(W pwhat,
Class<E> exceptionClass) |
default <R extends T,W extends C,E extends Exception> |
call(W pwhat,
Class<E> exceptionClass,
long deadlineNanos) |
<R extends T,W extends C,E extends Exception> |
call(W pwhat,
Class<E> exceptionClass,
long startNanos,
long deadlineNanos) |
default <R extends T,W extends C,E extends Exception> |
call(W pwhat,
Class<E> exceptionClass,
long timeout,
TimeUnit tu) |
default <W extends C,E extends Exception> |
run(W pwhat,
Class<E> exceptionClass) |
default <W extends C,E extends Exception> |
run(W pwhat,
Class<E> exceptionClass,
long deadlineNanos) |
default <E extends Exception,W extends C> |
run(W pwhat,
Class<E> exceptionClass,
long timeout,
TimeUnit tu) |
@CheckReturnValue <R extends T,W extends C,E extends Exception> R call(W pwhat, Class<E> exceptionClass, long startNanos, long deadlineNanos) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exception@CheckReturnValue default <R extends T,W extends C,E extends Exception> R call(W pwhat, Class<E> exceptionClass, long deadlineNanos) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exception@CheckReturnValue default <R extends T,W extends C,E extends Exception> R call(W pwhat, Class<E> exceptionClass) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exception@CheckReturnValue default <R extends T,W extends C,E extends Exception> R call(W pwhat, Class<E> exceptionClass, long timeout, TimeUnit tu) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exceptiondefault <W extends C,E extends Exception> void run(W pwhat, Class<E> exceptionClass) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exceptiondefault <W extends C,E extends Exception> void run(W pwhat, Class<E> exceptionClass, long deadlineNanos) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exceptiondefault <E extends Exception,W extends C> void run(W pwhat, Class<E> exceptionClass, long timeout, TimeUnit tu) throws InterruptedException, TimeoutException, E extends Exception
InterruptedExceptionTimeoutExceptionE extends Exceptionstatic <T,E extends Exception,C extends Callable<? extends T>> T call(C pwhat, RetryPredicate<T,C> retryPredicate, Class<E> exceptionClass, int maxExceptionChain) throws InterruptedException, TimeoutException, E extends Exception
T - - The type of callable to retry result;EX - - the exception thrown by the callable to retry.pwhat - - the callable to retry.InterruptedException - - thrown if retry interrupted.EX - - the exception thrown by callable.TimeoutExceptionE extends ExceptionCopyright © 2018 SPF4J. All rights reserved.