Package fr.gouv.vitam.common.retryable
Class RetryableOnException<T,E extends java.lang.Exception>
- java.lang.Object
-
- fr.gouv.vitam.common.retryable.RetryableOnException<T,E>
-
-
Constructor Summary
Constructors Constructor Description RetryableOnException(RetryableParameters param)
RetryableOnException(RetryableParameters param, java.util.function.Predicate<java.lang.Exception> retryOn)
RetryableOnException(RetryableParameters param, java.util.function.Predicate<java.lang.Exception> retryOn, java.util.function.Consumer<java.lang.Exception> onException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
exec(DelegateRetry<T,E> delegate)
void
execute(DelegateRetryVoid<E> delegate)
-
-
-
Constructor Detail
-
RetryableOnException
public RetryableOnException(RetryableParameters param, java.util.function.Predicate<java.lang.Exception> retryOn, java.util.function.Consumer<java.lang.Exception> onException)
-
RetryableOnException
public RetryableOnException(RetryableParameters param, java.util.function.Predicate<java.lang.Exception> retryOn)
-
RetryableOnException
public RetryableOnException(RetryableParameters param)
-
-
Method Detail
-
exec
public T exec(DelegateRetry<T,E> delegate) throws E extends java.lang.Exception
-
-