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
InterruptedException
TimeoutException
E 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
InterruptedException
TimeoutException
E 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
InterruptedException
TimeoutException
E 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
InterruptedException
TimeoutException
E extends Exception
default <W extends C,E extends Exception> void run(W pwhat, Class<E> exceptionClass) throws InterruptedException, TimeoutException, E extends Exception
InterruptedException
TimeoutException
E extends Exception
default <W extends C,E extends Exception> void run(W pwhat, Class<E> exceptionClass, long deadlineNanos) throws InterruptedException, TimeoutException, E extends Exception
InterruptedException
TimeoutException
E extends Exception
default <E extends Exception,W extends C> void run(W pwhat, Class<E> exceptionClass, long timeout, TimeUnit tu) throws InterruptedException, TimeoutException, E extends Exception
InterruptedException
TimeoutException
E extends Exception
static <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.TimeoutException
E extends Exception
Copyright © 2018 SPF4J. All rights reserved.