Meta - the type of meta-data for AbstractRetryingFilterBuilder.retryFor(BiPredicate)public static final class AbstractRetryingFilterBuilder.ReadOnlyRetryableSettings<Meta>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRetryable(Meta meta,
java.lang.Throwable throwable)
Checks the provided pair of
Meta and Throwable that the case is retryable. |
BiIntFunction<java.lang.Throwable,Completable> |
newStrategy(Executor alternativeTimerExecutor)
Builds a new retry strategy
BiIntFunction for retrying with
Publisher.retryWhen(BiIntFunction), Single.retryWhen(BiIntFunction), and
Completable.retryWhen(BiIntFunction) or in general with an alternative timer Executor. |
public boolean isRetryable(Meta meta, java.lang.Throwable throwable)
Meta and Throwable that the case is retryable.meta - a meta-data of a type Meta to checkthrowable - an exception occurredtrue if it is desirable to retry, false otherwisepublic BiIntFunction<java.lang.Throwable,Completable> newStrategy(Executor alternativeTimerExecutor)
BiIntFunction for retrying with
Publisher.retryWhen(BiIntFunction), Single.retryWhen(BiIntFunction), and
Completable.retryWhen(BiIntFunction) or in general with an alternative timer Executor.alternativeTimerExecutor - Executor to be used to schedule timers for backoff if no executor
was provided at the build timeBiIntFunction