Package fr.gouv.vitam.common.retryable
Interface Retryable<T,E extends Exception>
- All Known Implementing Classes:
RetryableOnException
,RetryableOnResult
public interface Retryable<T,E extends Exception>
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
doSleep
(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, String toPrint) exec
(DelegateRetry<T, E> delegate) void
execute
(DelegateRetryVoid<E> delegate) default void
sleep
(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, Consumer<Exception> onException, Exception exception) default void
sleep
(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, Consumer<T> onResult, T type)
-
Method Details
-
exec
-
execute
-
sleep
default void sleep(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, Consumer<T> onResult, T type) -
sleep
default void sleep(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, Consumer<Exception> onException, Exception exception) -
doSleep
default void doSleep(int attempt, String name, RetryableParameters param, SecureRandom randomSleep, String toPrint)
-