Package | Description |
---|---|
org.spf4j.failsafe |
This package contains operation retry utilities.
|
Modifier and Type | Method and Description |
---|---|
static PartialExceptionRetryPredicate<?,? extends Callable<?>> |
PartialExceptionRetryPredicate.from(Callables.AdvancedRetryPredicate<Exception> oldStyle)
Deprecated.
use this method to migrate from deprecated API to new APIs (failsafe)
|
Modifier and Type | Method and Description |
---|---|
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionPartialPredicate(PartialExceptionRetryPredicate<T,C> predicate) |
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionPartialPredicate(PartialExceptionRetryPredicate<T,C> predicate,
int maxRetries) |
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionPartialPredicate(PartialExceptionRetryPredicate<T,C> predicate,
long maxTime,
TimeUnit tu) |
Modifier and Type | Method and Description |
---|---|
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionPartialPredicateSupplier(Supplier<PartialExceptionRetryPredicate<T,C>> predicateSupplier) |
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionPartialPredicateSupplier(TimedSupplier<PartialExceptionRetryPredicate<T,C>> predicateSupplier) |
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionStatefulPartialPredicate(Supplier<PartialExceptionRetryPredicate<T,C>> predicateSupplier)
Deprecated.
|
RetryPolicy.Builder<T,C> |
RetryPolicy.Builder.withExceptionStatefulPartialPredicate(TimedSupplier<PartialExceptionRetryPredicate<T,C>> predicateSupplier)
Deprecated.
|
Copyright © 2018 SPF4J. All rights reserved.