Interface AsyncRetryPredicate<OUT>
@PublicEvolving
public interface AsyncRetryPredicate<OUT>
Interface encapsulates an asynchronous retry predicate.
-
Method Summary
Modifier and TypeMethodDescriptionAn Optional Java that defines a condition on asyncFunction's exception which will trigger a later reattempt operation, will be called before user's ResultFuture#completeExceptionally.An Optional Java that defines a condition on asyncFunction's future result which will trigger a later reattempt operation, will be called before user's ResultFuture#complete.
-
Method Details
-
resultPredicate
Optional<Predicate<Collection<OUT>>> resultPredicate()An Optional Java that defines a condition on asyncFunction's future result which will trigger a later reattempt operation, will be called before user's ResultFuture#complete.- Returns:
- predicate on result of
Collection
-
exceptionPredicate
An Optional Java that defines a condition on asyncFunction's exception which will trigger a later reattempt operation, will be called before user's ResultFuture#completeExceptionally.- Returns:
- predicate on
Throwableexception
-