Skip navigation links
A B C D E F G H I L N O P R S T V W 

A

abortIf(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that retries should be aborted if the completionPredicate matches the completion result.
abortIf(Predicate<T>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that retries should be aborted if the resultPredicate matches the result.
abortOn(Class<? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies when retries should be aborted.
abortOn(Class<? extends Throwable>...) - Method in class net.jodah.failsafe.RetryPolicy
Specifies when retries should be aborted.
abortOn(List<Class<? extends Throwable>>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies when retries should be aborted.
abortOn(Predicate<? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that retries should be aborted if the failurePredicate matches the failure.
abortWhen(Object) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that retries should be aborted if the execution result matches the result.
accept(T, U) - Method in interface net.jodah.failsafe.function.CheckedBiConsumer
 
accept(T) - Method in interface net.jodah.failsafe.function.CheckedConsumer
 
allowsExecution() - Method in class net.jodah.failsafe.CircuitBreaker
Returns whether the circuit allows execution, possibly triggering a state transition.
allowsRetries() - Method in class net.jodah.failsafe.RetryPolicy
Returns whether the policy allows retries according to the configured maxRetries and maxDuration.
apply(T, U) - Method in interface net.jodah.failsafe.function.CheckedBiFunction
 
apply(T) - Method in interface net.jodah.failsafe.function.CheckedFunction
 
AsyncCallable<T> - Interface in net.jodah.failsafe.function
A callable that manually triggers asynchronous retries or completion via an asynchronous execution.
AsyncExecution - Class in net.jodah.failsafe
Tracks asynchronous executions and allows retries to be scheduled according to a RetryPolicy.
AsyncFailsafe<R> - Class in net.jodah.failsafe
Performs asynchronous executions with failures handled according to a configured retry policy, circuit breaker and fallback.
AsyncFailsafeConfig<R,F> - Class in net.jodah.failsafe
Async Failsafe configuration.
AsyncRunnable - Interface in net.jodah.failsafe.function
A runnable that manually triggers asynchronous retries or completion via an asynchronous execution.

B

BiPredicate<T,U> - Interface in net.jodah.failsafe.function
 

C

call(AsyncExecution) - Method in interface net.jodah.failsafe.function.AsyncCallable
 
call(ExecutionContext) - Method in interface net.jodah.failsafe.function.ContextualCallable
 
canAbortFor(Object, Throwable) - Method in class net.jodah.failsafe.RetryPolicy
Returns whether an execution result can be aborted given the configured abort conditions.
canApplyDelayFn(Object, Throwable) - Method in class net.jodah.failsafe.RetryPolicy
Returns whether any configured delay function can be applied for an execution result.
cancel(boolean) - Method in class net.jodah.failsafe.FailsafeFuture
Attempts to cancel this execution.
cancel(boolean) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
canRetryFor(Object) - Method in class net.jodah.failsafe.Execution
Records an execution and returns true if a retry can be performed for the result, else returns false and marks the execution as complete.
canRetryFor(Object, Throwable) - Method in class net.jodah.failsafe.Execution
Records an execution and returns true if a retry can be performed for the result or failure, else returns false and marks the execution as complete.
canRetryFor(Object, Throwable) - Method in class net.jodah.failsafe.RetryPolicy
Returns whether an execution result can be retried given the configured abort conditions.
canRetryOn(Throwable) - Method in class net.jodah.failsafe.Execution
Records an execution and returns true if a retry can be performed for the failure, else returns false and marks the execution as complete.
CheckedBiConsumer<T,U> - Interface in net.jodah.failsafe.function
 
CheckedBiFunction<T,U,R> - Interface in net.jodah.failsafe.function
 
CheckedConsumer<T> - Interface in net.jodah.failsafe.function
 
CheckedFunction<T,R> - Interface in net.jodah.failsafe.function
 
CheckedRunnable - Interface in net.jodah.failsafe.function
A Runnable that throws checked exceptions.
CircuitBreaker - Class in net.jodah.failsafe
A circuit breaker that temporarily halts execution when configurable thresholds are exceeded.
CircuitBreaker() - Constructor for class net.jodah.failsafe.CircuitBreaker
Creates a Circuit that opens after a single failure, closes after a single success, and has no delay by default.
CircuitBreaker.State - Enum in net.jodah.failsafe
The state of the circuit.
CircuitBreakerOpenException - Exception in net.jodah.failsafe
Thrown when an execution is attempted while a configured CircuitBreaker is open.
CircuitBreakerOpenException() - Constructor for exception net.jodah.failsafe.CircuitBreakerOpenException
 
close() - Method in class net.jodah.failsafe.CircuitBreaker
Closes the circuit.
compareTo(Delayed) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
complete() - Method in class net.jodah.failsafe.AsyncExecution
Completes the execution and the associated FutureResult.
complete(Object) - Method in class net.jodah.failsafe.AsyncExecution
Attempts to complete the execution and the associated FutureResult with the result.
complete(Object, Throwable) - Method in class net.jodah.failsafe.AsyncExecution
Attempts to complete the execution and the associated FutureResult with the result and failure.
complete() - Method in class net.jodah.failsafe.Execution
Records and completes the execution.
complete(Object) - Method in class net.jodah.failsafe.Execution
Records and attempts to complete the execution with the result.
computeDelay(R, F, ExecutionContext) - Method in interface net.jodah.failsafe.RetryPolicy.DelayFunction
Returns the amount of delay before the next retry based on the result or failure of the last attempt and the execution context (executions so far).
ContextualCallable<T> - Interface in net.jodah.failsafe.function
A callable that provides execution context.
ContextualResultListener<R,F extends Throwable> - Interface in net.jodah.failsafe.event
Listens for an execution result, providing ExecutionContext that describe executions so far.
ContextualRunnable - Interface in net.jodah.failsafe.function
A runnable that provides execution context.
copy() - Method in class net.jodah.failsafe.RetryPolicy
Returns a copy of this RetryPolicy.

D

DefaultScheduledFuture<T> - Class in net.jodah.failsafe.util.concurrent
A default ScheduledFuture implementation.
DefaultScheduledFuture() - Constructor for class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
denominator - Variable in class net.jodah.failsafe.util.Ratio
 
Duration - Class in net.jodah.failsafe.util
Duration, consisting of length of a time unit.
Duration(long, TimeUnit) - Constructor for class net.jodah.failsafe.util.Duration
 

E

equals(Object) - Method in class net.jodah.failsafe.util.Duration
 
Execution - Class in net.jodah.failsafe
Tracks executions and determines when an execution can be performed for a RetryPolicy.
Execution(CircuitBreaker) - Constructor for class net.jodah.failsafe.Execution
Creates a new Execution for the circuitBreaker.
Execution(RetryPolicy) - Constructor for class net.jodah.failsafe.Execution
Creates a new Execution for the retryPolicy.
Execution(RetryPolicy, CircuitBreaker) - Constructor for class net.jodah.failsafe.Execution
Creates a new Execution for the retryPolicy and circuitBreaker.
ExecutionContext - Class in net.jodah.failsafe
Contextual execution information.

F

failIf(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies that a failure should be recorded if the completionPredicate matches the completion result.
failIf(Predicate<T>) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies that a failure should be recorded if the resultPredicate matches the result.
failOn(Class<? extends Throwable>) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies the type to fail on.
failOn(Class<? extends Throwable>...) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies the types to fail on.
failOn(List<Class<? extends Throwable>>) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies the types to fail on.
failOn(Predicate<? extends Throwable>) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies that a failure should be recorded if the failurePredicate matches the failure.
Failsafe - Class in net.jodah.failsafe
Simple, sophisticated failure handling.
Failsafe() - Constructor for class net.jodah.failsafe.Failsafe
 
FailsafeConfig<R,F> - Class in net.jodah.failsafe
Failsafe configuration.
FailsafeException - Exception in net.jodah.failsafe
Thrown when a synchronous Failsafe run() call fails with an exception.
FailsafeException() - Constructor for exception net.jodah.failsafe.FailsafeException
 
FailsafeException(Throwable) - Constructor for exception net.jodah.failsafe.FailsafeException
 
FailsafeFuture<T> - Class in net.jodah.failsafe
The future result of an asynchronous Failsafe execution.
failWhen(Object) - Method in class net.jodah.failsafe.CircuitBreaker
Specifies that a failure should be recorded if the execution result matches the result.
future(Callable<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.
future(ContextualCallable<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.
futureAsync(AsyncCallable<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.

G

get(Callable<T>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
get(ContextualCallable<T>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
get() - Method in class net.jodah.failsafe.FailsafeFuture
Waits if necessary for the execution to complete, and then returns its result.
get(long, TimeUnit) - Method in class net.jodah.failsafe.FailsafeFuture
Waits if necessary for at most the given time for the execution to complete, and then returns its result, if available.
get(Callable<T>) - Method in class net.jodah.failsafe.SyncFailsafe
Executes the callable until a successful result is returned or the configured RetryPolicy is exceeded.
get(ContextualCallable<T>) - Method in class net.jodah.failsafe.SyncFailsafe
Executes the callable until a successful result is returned or the configured RetryPolicy is exceeded.
get() - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
get(long, TimeUnit) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
getAsync(AsyncCallable<T>) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
getDelay() - Method in class net.jodah.failsafe.CircuitBreaker
Returns the delay before allowing another execution on the circuit.
getDelay() - Method in class net.jodah.failsafe.RetryPolicy
Returns the delay between retries.
getDelay(TimeUnit) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
getDelayFactor() - Method in class net.jodah.failsafe.RetryPolicy
Returns the delay factor for backoff retries.
getDelayFn() - Method in class net.jodah.failsafe.RetryPolicy
Returns the function that determines the next delay given a failed attempt with the given Throwable.
getDelayMax() - Method in class net.jodah.failsafe.RetryPolicy
Returns the max delay between retries.
getDelayMin() - Method in class net.jodah.failsafe.RetryPolicy
Returns the min delay between retries.
getElapsedTime() - Method in class net.jodah.failsafe.ExecutionContext
Returns the elapsed time since initial execution began.
getExecutions() - Method in class net.jodah.failsafe.ExecutionContext
Gets the number of executions so far.
getFailureThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
Gets the ratio of successive failures that must occur when in a closed state in order to open the circuit else null if none has been configured.
getJitter() - Method in class net.jodah.failsafe.RetryPolicy
Returns the jitter, else null if none has been configured.
getJitterFactor() - Method in class net.jodah.failsafe.RetryPolicy
Returns the jitter factor, else 0.0 if none has been configured.
getMaxDelay() - Method in class net.jodah.failsafe.RetryPolicy
Returns the max delay between backoff retries.
getMaxDuration() - Method in class net.jodah.failsafe.RetryPolicy
Returns the max duration to perform retries for.
getMaxRetries() - Method in class net.jodah.failsafe.RetryPolicy
Returns the max retries.
getStartTime() - Method in class net.jodah.failsafe.ExecutionContext
Returns the time that the initial execution started.
getState() - Method in class net.jodah.failsafe.CircuitBreaker
Gets the state of the circuit.
getSuccessThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
Gets the ratio of successive successful executions that must occur when in a half-open state in order to close the circuit else null if none has been configured.
getTimeout() - Method in class net.jodah.failsafe.CircuitBreaker
Returns timeout for executions else null if none has been configured.

H

halfOpen() - Method in class net.jodah.failsafe.CircuitBreaker
Half-opens the circuit.
hashCode() - Method in class net.jodah.failsafe.util.Duration
 

I

isCancelled() - Method in class net.jodah.failsafe.FailsafeFuture
Returns true if this execution was cancelled before it completed normally.
isCancelled() - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
isClosed() - Method in class net.jodah.failsafe.CircuitBreaker
Returns whether the circuit is closed.
isDone() - Method in class net.jodah.failsafe.FailsafeFuture
Returns true if this execution completed.
isDone() - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
 
isFailure(Object, Throwable) - Method in class net.jodah.failsafe.CircuitBreaker
Returns whether the circuit breaker considers the result or throwable a failure based on the configured conditions, or if failure is not null it is not checked by any configured condition.
isHalfOpen() - Method in class net.jodah.failsafe.CircuitBreaker
Returns whether the circuit is half open.
isOpen() - Method in class net.jodah.failsafe.CircuitBreaker
Returns whether the circuit is open.

L

Listeners<R> - Class in net.jodah.failsafe
Failsafe execution event listeners.
Listeners() - Constructor for class net.jodah.failsafe.Listeners
 

N

net.jodah.failsafe - package net.jodah.failsafe
Core Failsafe APIs for performing failsafe executions.
net.jodah.failsafe.event - package net.jodah.failsafe.event
Event listener types.
net.jodah.failsafe.function - package net.jodah.failsafe.function
Functional interface types.
net.jodah.failsafe.util - package net.jodah.failsafe.util
Utilities.
net.jodah.failsafe.util.concurrent - package net.jodah.failsafe.util.concurrent
Concurrent utilities.
NONE - Static variable in class net.jodah.failsafe.util.Duration
 
numerator - Variable in class net.jodah.failsafe.util.Ratio
 

O

of(ScheduledExecutorService) - Static method in class net.jodah.failsafe.util.concurrent.Schedulers
Returns a Scheduler adapted from the executor.
onAbort(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is aborted.
onAbort(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is aborted.
onAbort(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is aborted.
onAbort(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called when an execution is aborted.
onAbort(R, Throwable, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called when an execution is aborted.
onAbortAsync(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution is aborted according to the retry policy.
onAbortAsync(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution is aborted according to the retry policy.
onAbortAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution is aborted according to the retry policy.
onAbortAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is aborted.
onAbortAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is aborted.
onAbortAsync(ContextualResultListener<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is aborted.
onClose(CheckedRunnable) - Method in class net.jodah.failsafe.CircuitBreaker
Calls the runnable when the circuit is closed.
onComplete(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is completed.
onComplete(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is completed.
onComplete(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called when an execution is completed.
onComplete(R, Throwable, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called when an execution is completed.
onCompleteAsync(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution is completed.
onCompleteAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution is completed.
onCompleteAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is completed.
onCompleteAsync(ContextualResultListener<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is completed.
onFailedAttempt(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution attempt fails.
onFailedAttempt(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution attempt fails.
onFailedAttempt(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution attempt fails.
onFailedAttempt(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called when an execution attempt fails.
onFailedAttempt(R, Throwable, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called when an execution attempt fails.
onFailedAttemptAsync(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failed execution attempt.
onFailedAttemptAsync(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failed execution attempt.
onFailedAttemptAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failed execution attempt.
onFailedAttemptAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution attempt fails.
onFailedAttemptAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution attempt fails.
onFailedAttemptAsync(ContextualResultListener<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution attempt fails.
onFailure(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution fails and cannot be retried.
onFailure(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution fails and cannot be retried.
onFailure(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution fails and cannot be retried.
onFailure(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called when an execution fails and cannot be retried.
onFailure(R, Throwable, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called when an execution fails and cannot be retried.
onFailureAsync(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failure occurs that cannot be retried.
onFailureAsync(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failure occurs that cannot be retried.
onFailureAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a failure occurs that cannot be retried.
onFailureAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution fails and cannot be retried.
onFailureAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution fails and cannot be retried.
onFailureAsync(ContextualResultListener<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution fails and cannot be retried.
onHalfOpen(CheckedRunnable) - Method in class net.jodah.failsafe.CircuitBreaker
Calls the runnable when the circuit is half-opened.
onOpen(CheckedRunnable) - Method in class net.jodah.failsafe.CircuitBreaker
Calls the runnable when the circuit is opened.
onResult(R, F, ExecutionContext) - Method in interface net.jodah.failsafe.event.ContextualResultListener
Handles an execution result.
onRetriesExceeded(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution fails and the max retry attempts or max duration are exceeded.
onRetriesExceeded(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution fails and the max retry attempts or max duration are exceeded.
onRetriesExceeded(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called when an execution fails and the max retry attempts or max duration are exceeded.
onRetriesExceededAsync(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution fails and the max retry attempts or duration are exceeded.
onRetriesExceededAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler when an execution fails and the max retry attempts or duration are exceeded.
onRetriesExceededAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution fails and the max retry attempts or max duration are exceeded.
onRetriesExceededAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution fails and the max retry attempts or max duration are exceeded.
onRetry(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called before an execution is retried.
onRetry(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called before an execution is retried.
onRetry(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called before an execution is retried.
onRetry(R, Throwable) - Method in class net.jodah.failsafe.Listeners
Called before an execution is retried.
onRetry(R, Throwable, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called before an execution is retried.
onRetryAsync(ContextualResultListener<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler before a retry is attempted.
onRetryAsync(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler before a retry is attempted.
onRetryAsync(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler before a retry is attempted.
onRetryAsync(CheckedBiConsumer<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor before an execution is retried.
onRetryAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor before an execution is retried.
onRetryAsync(ContextualResultListener<? extends R, ? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor before an execution is retried.
onSuccess(CheckedBiConsumer<? extends R, ExecutionContext>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is successful.
onSuccess(CheckedConsumer<? extends R>) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called when an execution is successful.
onSuccess(R) - Method in class net.jodah.failsafe.Listeners
Called when an execution is successful.
onSuccess(R, ExecutionContext) - Method in class net.jodah.failsafe.Listeners
Called when an execution is successful.
onSuccessAsync(CheckedBiConsumer<? extends R, ExecutionContext>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a successful execution.
onSuccessAsync(CheckedConsumer<? extends R>) - Method in class net.jodah.failsafe.AsyncFailsafeConfig
Registers the listener to be called asynchronously on Failsafe's configured executor or Scheduler after a successful execution.
onSuccessAsync(CheckedBiConsumer<? extends R, ExecutionContext>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is successful.
onSuccessAsync(CheckedConsumer<? extends R>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
Registers the listener to be called asynchronously on the executor when an execution is successful.
open() - Method in class net.jodah.failsafe.CircuitBreaker
Opens the circuit.

P

Predicate<T> - Interface in net.jodah.failsafe.function
 

R

Ratio - Class in net.jodah.failsafe.util
A ratio.
Ratio(int, int) - Constructor for class net.jodah.failsafe.util.Ratio
 
ratio - Variable in class net.jodah.failsafe.util.Ratio
 
recordFailure(Throwable) - Method in class net.jodah.failsafe.CircuitBreaker
Records an execution failure as a success or failure based on the failure configuration as determined by CircuitBreaker.isFailure(Object, Throwable).
recordFailure(Throwable) - Method in class net.jodah.failsafe.Execution
Records a failed execution and returns true if a retry can be performed for the failure, else returns false and completes the execution.
recordResult(Object) - Method in class net.jodah.failsafe.CircuitBreaker
Records an execution result as a success or failure based on the failure configuration as determined by CircuitBreaker.isFailure(Object, Throwable).
recordSuccess() - Method in class net.jodah.failsafe.CircuitBreaker
Records an execution success.
retry() - Method in class net.jodah.failsafe.AsyncExecution
Records an execution and returns true if a retry has been scheduled for else returns returns false and completes the execution and associated FutureResult.
retryFor(Object) - Method in class net.jodah.failsafe.AsyncExecution
Records an execution and returns true if a retry has been scheduled for the result, else returns false and marks the execution and associated FutureResult as complete.
retryFor(Object, Throwable) - Method in class net.jodah.failsafe.AsyncExecution
Records an execution and returns true if a retry has been scheduled for the result or failure, else returns false and marks the execution and associated FutureResult as complete.
retryIf(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that a retry should occur if the completionPredicate matches the completion result and the retry policy is not exceeded.
retryIf(Predicate<T>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that a retry should occur if the resultPredicate matches the result and the retry policy is not exceeded.
retryOn(Throwable) - Method in class net.jodah.failsafe.AsyncExecution
Records an execution and returns true if a retry has been scheduled for the failure, else returns false and marks the execution and associated FutureResult as complete.
retryOn(Class<? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies the failure to retry on.
retryOn(Class<? extends Throwable>...) - Method in class net.jodah.failsafe.RetryPolicy
Specifies the failures to retry on.
retryOn(List<Class<? extends Throwable>>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies the failures to retry on.
retryOn(Predicate<? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that a retry should occur if the failurePredicate matches the failure and the retry policy is not exceeded.
RetryPolicy - Class in net.jodah.failsafe
A policy that defines when retries should be performed.
RetryPolicy() - Constructor for class net.jodah.failsafe.RetryPolicy
Creates a retry policy that always retries with no delay.
RetryPolicy(RetryPolicy) - Constructor for class net.jodah.failsafe.RetryPolicy
Copy constructor.
RetryPolicy.DelayFunction<R,F extends Throwable> - Interface in net.jodah.failsafe
A functional interface for computing delays between retries in conjunction with RetryPolicy.withDelay(DelayFunction).
retryWhen(Object) - Method in class net.jodah.failsafe.RetryPolicy
Specifies that a retry should occur if the execution result equals the result and the retry policy is not exceeded.
run(CheckedRunnable) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the runnable asynchronously until successful or until the configured RetryPolicy is exceeded.
run(ContextualRunnable) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the runnable asynchronously until successful or until the configured RetryPolicy is exceeded.
run(AsyncExecution) - Method in interface net.jodah.failsafe.function.AsyncRunnable
 
run() - Method in interface net.jodah.failsafe.function.CheckedRunnable
 
run(ExecutionContext) - Method in interface net.jodah.failsafe.function.ContextualRunnable
 
run(CheckedRunnable) - Method in class net.jodah.failsafe.SyncFailsafe
Executes the runnable until successful or until the configured RetryPolicy is exceeded.
run(ContextualRunnable) - Method in class net.jodah.failsafe.SyncFailsafe
Executes the runnable until successful or until the configured RetryPolicy is exceeded.
runAsync(AsyncRunnable) - Method in class net.jodah.failsafe.AsyncFailsafe
Executes the runnable asynchronously until successful or until the configured RetryPolicy is exceeded.

S

schedule(Callable<?>, long, TimeUnit) - Method in interface net.jodah.failsafe.util.concurrent.Scheduler
Schedules the callable to be called after the delay for the unit.
Scheduler - Interface in net.jodah.failsafe.util.concurrent
Schedules executions.
Schedulers - Class in net.jodah.failsafe.util.concurrent
Scheduler utilities.
SyncFailsafe<R> - Class in net.jodah.failsafe
Performs synchronous executions with failures handled according to a configured retry policy, circuit breaker and fallback.

T

test(T, U) - Method in interface net.jodah.failsafe.function.BiPredicate
 
test(T) - Method in interface net.jodah.failsafe.function.Predicate
 
toDays() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in days.
toHours() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in hours.
toMillis() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in milliseconds.
toMinutes() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in minutes.
toNanos() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in nanoseconds.
toSeconds() - Method in class net.jodah.failsafe.util.Duration
Returns the Duration in seconds.
toString() - Method in class net.jodah.failsafe.CircuitBreaker
 
toString() - Method in class net.jodah.failsafe.util.Duration
 

V

valueOf(String) - Static method in enum net.jodah.failsafe.CircuitBreaker.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.jodah.failsafe.CircuitBreaker.State
Returns an array containing the constants of this enum type, in the order they are declared.

W

with(RetryPolicy) - Static method in class net.jodah.failsafe.Failsafe
Creates and returns a new SyncFailsafe instance that will perform executions and retries synchronously according to the retryPolicy.
with(CircuitBreaker) - Static method in class net.jodah.failsafe.Failsafe
Creates and returns a new SyncFailsafe instance that will perform executions and retries synchronously according to the circuitBreaker.
with(CircuitBreaker) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the circuitBreaker to be used to control the rate of event execution.
with(Listeners<T>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the listeners to be called as execution events occur.
with(RetryPolicy) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the retryPolicy to be used for retrying failed executions.
with(ScheduledExecutorService) - Method in class net.jodah.failsafe.SyncFailsafe
Creates and returns a new AsyncFailsafe instance that will perform executions and retries asynchronously via the executor.
with(Scheduler) - Method in class net.jodah.failsafe.SyncFailsafe
Creates and returns a new AsyncFailsafe instance that will perform executions and retries asynchronously via the scheduler.
withBackoff(long, long, TimeUnit) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delay between retries, exponentially backing off to the maxDelay and multiplying successive delays by a factor of 2.
withBackoff(long, long, TimeUnit, double) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delay between retries, exponentially backing off to the maxDelay and multiplying successive delays by the delayFactor.
withDelay(long, TimeUnit) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the delay to wait in open state before transitioning to half-open.
withDelay(long, TimeUnit) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delay to occur between retries.
withDelay(long, long, TimeUnit) - Method in class net.jodah.failsafe.RetryPolicy
Sets a random delay between the delayMin and delayMax (inclusive) to occur between retries.
withDelay(RetryPolicy.DelayFunction<?, ? extends Throwable>) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delayFunction that computes the next delay before retrying.
withDelayOn(RetryPolicy.DelayFunction<Object, F>, Class<F>) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delayFunction that computes the next delay before retrying.
withDelayWhen(RetryPolicy.DelayFunction<R, ? extends Throwable>, R) - Method in class net.jodah.failsafe.RetryPolicy
Sets the delayFunction that computes the next delay before retrying.
withFailureThreshold(int) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the number of successive failures that must occur when in a closed state in order to open the circuit.
withFailureThreshold(int, int) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the ratio of successive failures that must occur when in a closed state in order to open the circuit.
withFallback(Callable<? extends R>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(CheckedBiConsumer<? extends R, ? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(CheckedBiFunction<? extends R, ? extends Throwable, ? extends R>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(CheckedFunction<? extends Throwable, ? extends R>) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(CheckedRunnable) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback action to be executed if execution fails.
withFallback(R) - Method in class net.jodah.failsafe.FailsafeConfig
Configures the fallback result to be returned if execution fails.
withJitter(double) - Method in class net.jodah.failsafe.RetryPolicy
Sets the jitterFactor to randomly vary retry delays by.
withJitter(long, TimeUnit) - Method in class net.jodah.failsafe.RetryPolicy
Sets the jitter to randomly vary retry delays by.
withMaxDuration(long, TimeUnit) - Method in class net.jodah.failsafe.RetryPolicy
Sets the max duration to perform retries for, else the execution will be failed.
withMaxRetries(int) - Method in class net.jodah.failsafe.RetryPolicy
Sets the max number of retries to perform.
withSuccessThreshold(int) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the number of successive successful executions that must occur when in a half-open state in order to close the circuit, else the circuit is re-opened when a failure occurs.
withSuccessThreshold(int, int) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the ratio of successive successful executions that must occur when in a half-open state in order to close the circuit.
withTimeout(long, TimeUnit) - Method in class net.jodah.failsafe.CircuitBreaker
Sets the timeout for executions.
A B C D E F G H I L N O P R S T V W 
Skip navigation links

Copyright © 2018. All rights reserved.