Package fr.gouv.vitam.common.retryable
Class RetryableOnResult<T,E extends java.lang.Exception>
- java.lang.Object
-
- fr.gouv.vitam.common.retryable.RetryableOnResult<T,E>
-
-
Constructor Summary
Constructors Constructor Description RetryableOnResult(RetryableParameters param, java.util.function.Predicate<T> retryOn)
RetryableOnResult(RetryableParameters param, java.util.function.Predicate<T> retryOn, java.util.function.Consumer<T> onResult)
-
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
-
RetryableOnResult
public RetryableOnResult(RetryableParameters param, java.util.function.Predicate<T> retryOn, java.util.function.Consumer<T> onResult)
-
RetryableOnResult
public RetryableOnResult(RetryableParameters param, java.util.function.Predicate<T> retryOn)
-
-
Method Detail
-
exec
public T exec(DelegateRetry<T,E> delegate) throws E extends java.lang.Exception
-
-