Class RetryUtils
java.lang.Object
de.hybris.platform.searchservices.util.RetryUtils
Retry utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
voidwaitForConditionOrElseThrow(BooleanSupplier condition, RetryConfiguration configuration, Supplier<? extends E> exceptionSupplier) static <T,E extends Throwable>
TwaitForConditionOrElseThrow(Supplier<T> valueSupplier, Predicate<T> condition, RetryConfiguration configuration, Function<T, ? extends E> exceptionSupplier)
-
Method Details
-
waitForConditionOrElseThrow
public static <E extends Throwable> void waitForConditionOrElseThrow(BooleanSupplier condition, RetryConfiguration configuration, Supplier<? extends E> exceptionSupplier) throws InterruptedException, E - Throws:
InterruptedExceptionE extends Throwable
-
waitForConditionOrElseThrow
public static <T,E extends Throwable> T waitForConditionOrElseThrow(Supplier<T> valueSupplier, Predicate<T> condition, RetryConfiguration configuration, Function<T, ? extends E> exceptionSupplier) throws InterruptedException, E- Throws:
InterruptedExceptionE extends Throwable
-