- 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.
- 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.
- 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.
- 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.
- 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 is 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.
- 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
-
- onRetriesExceeded(CheckedConsumer<? extends Throwable>) - Method in class net.jodah.failsafe.FailsafeConfig
-
- onRetriesExceeded(R, Throwable) - Method in class net.jodah.failsafe.Listeners
-
- 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
-
- onRetriesExceededAsync(CheckedConsumer<? extends Throwable>, ExecutorService) - Method in class net.jodah.failsafe.FailsafeConfig
-
- 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.
- 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
-
- 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
-
- 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 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.
- retryWhen(Object) - Method in class net.jodah.failsafe.RetryPolicy
-
Specifies that a retry should occur if the execution result matches 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.
- 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 between retries.
- 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.