Package com.algolia.utils
Class TaskUtils
java.lang.Object
com.algolia.utils.TaskUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <TResponse>
TResponseretryUntil
(Supplier<TResponse> func, Predicate<TResponse> validate, int maxRetries, IntUnaryOperator timeout)
-
Field Details
-
DEFAULT_MAX_RETRIES
public static final int DEFAULT_MAX_RETRIES- See Also:
-
DEFAULT_TIMEOUT
-
-
Constructor Details
-
TaskUtils
public TaskUtils()
-
-
Method Details
-
retryUntil
public static <TResponse> TResponse retryUntil(Supplier<TResponse> func, Predicate<TResponse> validate, int maxRetries, IntUnaryOperator timeout) throws AlgoliaRuntimeException - Throws:
AlgoliaRuntimeException
-