Package | Description |
---|---|
org.spf4j.failsafe |
This package contains operation retry utilities.
|
Modifier and Type | Field and Description |
---|---|
static RetryDecision<?,?> |
RetryDecision.ABORT |
Modifier and Type | Method and Description |
---|---|
static RetryDecision |
RetryDecision.abort() |
static <T> RetryDecision<T,? extends Callable<? extends T>> |
RetryDecision.abortReturn(T result)
Abort operation and return the provided Object.
|
static RetryDecision |
RetryDecision.abortThrow(Exception exception)
Abort operation with a custom Exception.
|
default RetryDecision<T,C> |
PartialTypedExceptionRetryPredicate.apply(E t,
C u) |
default RetryDecision<T,C> |
PartialResultRetryPredicate.apply(T t,
C u) |
RetryDecision<T,C> |
RetryPredicate.getDecision(T value,
C what)
Get the RetryDecision for the result value returned by Callable C.
|
RetryDecision<T,C> |
PartialResultRetryPredicate.getDecision(T value,
C what) |
RetryDecision<T,C> |
PartialTypedExceptionRetryPredicate.getExceptionDecision(E value,
C what) |
RetryDecision<T,C> |
RetryPredicate.getExceptionDecision(Exception value,
C what) |
static <T,C extends Callable<? extends T>> |
RetryDecision.retry(long retryNanos,
C callable) |
static <T,C extends Callable<? extends T>> |
RetryDecision.retry(long time,
TimeUnit unit,
C callable) |
static <T,C extends Callable<? extends T>> |
RetryDecision.retryDefault(C callable) |
Copyright © 2018 SPF4J. All rights reserved.