- canCancel() - Method in class net.jodah.failsafe.Timeout
-
Returns whether the policy can cancel an execution if the timeout is exceeded.
- cancel(boolean) - Method in class net.jodah.failsafe.FailsafeFuture
-
Cancels this and the internal delegate.
- cancel(boolean) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
-
- canInterrupt() - Method in class net.jodah.failsafe.Timeout
-
Returns whether the policy can interrupt an execution if the timeout is exceeded.
- 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.
- 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.
- CheckedConsumer<T> - Interface in net.jodah.failsafe.function
-
A Consumer that throws checked exceptions.
- CheckedFunction<T,R> - Interface in net.jodah.failsafe.function
-
A Function that throws checked exceptions.
- CheckedRunnable - Interface in net.jodah.failsafe.function
-
A Runnable that throws checked exceptions.
- CheckedSupplier<T> - Interface in net.jodah.failsafe.function
-
A Supplier that throws checked exceptions.
- CircuitBreaker<R> - Class in net.jodah.failsafe
-
A circuit breaker temporarily blocks execution when a configured number of failures are exceeded.
- CircuitBreaker() - Constructor for class net.jodah.failsafe.CircuitBreaker
-
- 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(CircuitBreaker) - 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 CompletableFuture.
- complete(Object) - Method in class net.jodah.failsafe.AsyncExecution
-
Attempts to complete the execution and the associated CompletableFuture with the result.
- complete(Object, Throwable) - Method in class net.jodah.failsafe.AsyncExecution
-
Attempts to complete the execution and the associated CompletableFuture with the result and failure.
- complete() - Method in class net.jodah.failsafe.Execution
-
Records and completes the execution successfully.
- complete(Object) - Method in class net.jodah.failsafe.Execution
-
Records and attempts to complete the execution with the result.
- complete(T) - Method in class net.jodah.failsafe.FailsafeFuture
-
If not already completed, completes the future with the value, calling the complete and success handlers.
- completeExceptionally(Throwable) - Method in class net.jodah.failsafe.FailsafeFuture
-
If not already completed, completes the future with the failure, calling the complete and failure
handlers.
- computeDelay(ExecutionContext) - Method in class net.jodah.failsafe.DelayablePolicy
-
Returns a computed delay for the result and context else null if no delay function is
configured or the computed delay is invalid.
- computeDelay(R, F, ExecutionContext) - Method in interface net.jodah.failsafe.function.DelayFunction
-
Returns the amount of delay before the next
Policy execution attempt based on the result
or failure of the last attempt and the execution context (executions so far).
- ContextualRunnable - Interface in net.jodah.failsafe.function
-
A Runnable that provides execution context.
- ContextualSupplier<T> - Interface in net.jodah.failsafe.function
-
A Supplier that provides execution context.
- copy() - Method in class net.jodah.failsafe.ExecutionContext
-
- copy() - Method in class net.jodah.failsafe.RetryPolicy
-
Returns a copy of this RetryPolicy.
- get(CheckedSupplier<T>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier until a successful result is returned or the configured policies are exceeded.
- get(ContextualSupplier<T>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier until a successful result is returned or the configured policies are exceeded.
- get(AsyncExecution) - Method in interface net.jodah.failsafe.function.AsyncSupplier
-
- get() - Method in interface net.jodah.failsafe.function.CheckedSupplier
-
- get(ExecutionContext) - Method in interface net.jodah.failsafe.function.ContextualSupplier
-
- get() - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
-
- get(long, TimeUnit) - Method in class net.jodah.failsafe.util.concurrent.DefaultScheduledFuture
-
- getAsync(CheckedSupplier<T>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until a successful result is returned or the configured policies are
exceeded.
- getAsync(ContextualSupplier<T>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until a successful result is returned or the configured policies are
exceeded.
- getAsyncExecution(AsyncSupplier<T>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until a successful result is returned or the configured policies are
exceeded.
- getAttemptCount() - Method in class net.jodah.failsafe.event.ExecutionEvent
-
Gets the number of completed execution attempts so far.
- getAttemptCount() - Method in class net.jodah.failsafe.ExecutionContext
-
Gets the number of completed execution attempts so far.
- getCircuitBreaker() - Method in exception net.jodah.failsafe.CircuitBreakerOpenException
-
- 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.DelayablePolicy
-
Returns the function that determines the next delay before allowing another execution.
- 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.
- getElapsedAttemptTime() - Method in class net.jodah.failsafe.ExecutionContext
-
Returns the elapsed time since the last execution attempt began.
- getElapsedTime() - Method in class net.jodah.failsafe.event.ExecutionEvent
-
Returns the elapsed time since initial execution began.
- getElapsedTime() - Method in class net.jodah.failsafe.ExecutionContext
-
Returns the elapsed time since initial execution began.
- getExecutionCount() - Method in class net.jodah.failsafe.CircuitBreaker
-
Returns the number of executions recorded in the current state when the state is CLOSED or HALF_OPEN.
- getFailure() - Method in class net.jodah.failsafe.event.ExecutionCompletedEvent
-
Returns the failure that preceeded the event, else null if there was none.
- getFailure() - Method in class net.jodah.failsafe.ExecutionResult
-
- getFailureCount() - Method in class net.jodah.failsafe.CircuitBreaker
-
Returns the number of failures recorded in the current state when the state is CLOSED or HALF_OPEN.
- getFailureExecutionThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
-
Used with time based thresholding.
- getFailureRate() - Method in class net.jodah.failsafe.CircuitBreaker
-
The percentage rate of failed executions, from 0 to 100, in the current state when the state is CLOSED or
HALF_OPEN.
- getFailureRateThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
-
Used with time based thresholding.
- getFailureThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
-
Gets the number of successive failures that must occur within the
failure
thresholding capacity when in a CLOSED or HALF_OPEN state in order to open the circuit.
- getFailureThresholdingCapacity() - Method in class net.jodah.failsafe.CircuitBreaker
-
Returns the rolling capacity for storing execution results when performing failure thresholding in the CLOSED or
HALF_OPEN states.
- getFailureThresholdingPeriod() - Method in class net.jodah.failsafe.CircuitBreaker
-
Used with time based thresholding.
- 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.
- getLastFailure() - Method in class net.jodah.failsafe.event.ExecutionAttemptedEvent
-
Returns the failure that preceeded the event, else null if there was none.
- getLastFailure() - Method in class net.jodah.failsafe.ExecutionContext
-
Returns the last failure that was recorded else null.
- getLastResult() - Method in class net.jodah.failsafe.event.ExecutionAttemptedEvent
-
Returns the result that preceeded the event, else null if there was none.
- getLastResult() - Method in class net.jodah.failsafe.ExecutionContext
-
Returns the last result that was recorded else null.
- getLastResult(T) - Method in class net.jodah.failsafe.ExecutionContext
-
Returns the last result that was recorded else the defaultValue.
- getMaxAttempts() - Method in class net.jodah.failsafe.RetryPolicy
-
Returns the max number of execution attempts to perform.
- 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 number of retries to perform when an execution attempt fails.
- getRemainingDelay() - Method in class net.jodah.failsafe.CircuitBreaker
-
When in the OPEN state, returns the remaining delay until the circuit is half-opened and allows another execution,
else returns Duration.ZERO.
- getResult() - Method in class net.jodah.failsafe.event.ExecutionCompletedEvent
-
Returns the result that preceeded the event, else null if there was none.
- getResult() - Method in class net.jodah.failsafe.ExecutionResult
-
- getStageAsync(CheckedSupplier<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until the resulting future is successfully completed or the configured
policies are exceeded.
- getStageAsync(ContextualSupplier<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until the resulting future is successfully completed or the configured
policies are exceeded.
- getStageAsyncExecution(AsyncSupplier<? extends CompletionStage<T>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the supplier asynchronously until the resulting future is successfully completed or the configured
policies are exceeded.
- getStartTime() - Method in class net.jodah.failsafe.event.ExecutionEvent
-
Returns the time that the initial execution started.
- 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.
- getSuccessCount() - Method in class net.jodah.failsafe.CircuitBreaker
-
Returns the number of successes recorded in the current state when the state is CLOSED or HALF_OPEN.
- getSuccessRate() - Method in class net.jodah.failsafe.CircuitBreaker
-
The percentage rate of successful executions, from 0 to 100, in the current state when the state is CLOSED or
HALF_OPEN.
- getSuccessThreshold() - Method in class net.jodah.failsafe.CircuitBreaker
-
Gets the number of successive successes that must occur within the
success
thresholding capacity when in a HALF_OPEN state in order to open the circuit.
- getSuccessThresholdingCapacity() - Method in class net.jodah.failsafe.CircuitBreaker
-
Returns the rolling capacity for storing execution results when performing success thresholding in the HALF_OPEN
state.
- getTimeout() - Method in class net.jodah.failsafe.Timeout
-
Returns the timeout duration.
- getTimeout() - Method in exception net.jodah.failsafe.TimeoutExceededException
-
Retruns the
Timeout that caused the exception.
- getWaitNanos() - Method in class net.jodah.failsafe.ExecutionResult
-
- getWaitTime() - Method in class net.jodah.failsafe.AbstractExecution
-
Returns the time to wait before the next execution attempt.
- of(CheckedRunnable) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- of(CheckedSupplier<? extends R>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- of(CheckedConsumer<ExecutionAttemptedEvent<? extends R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- of(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends R>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- of(R) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback result to be returned if execution fails.
- of(Duration) - Static method in class net.jodah.failsafe.Timeout
-
- of(ScheduledExecutorService) - Static method in interface net.jodah.failsafe.util.concurrent.Scheduler
-
Returns a Scheduler adapted from the executor.
- of(ExecutorService) - Static method in interface net.jodah.failsafe.util.concurrent.Scheduler
-
Returns a Scheduler adapted from the executor.
- ofAsync(CheckedRunnable) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- ofAsync(CheckedSupplier<? extends R>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- ofAsync(CheckedConsumer<ExecutionAttemptedEvent<? extends R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- ofAsync(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends R>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- ofException(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends Exception>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails and allows an alternative exception to be supplied
instead.
- ofStage(CheckedSupplier<? extends CompletionStage<R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- ofStage(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends CompletionStage<R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed if execution fails.
- ofStageAsync(CheckedSupplier<? extends CompletionStage<R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- ofStageAsync(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends CompletionStage<R>>) - Static method in class net.jodah.failsafe.Fallback
-
Returns the fallback to be executed asynchronously if execution fails.
- onAbort(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.RetryPolicy
-
Registers the listener to be called when an execution is aborted.
- onClose(CheckedRunnable) - Method in class net.jodah.failsafe.CircuitBreaker
-
Calls the runnable when the circuit is closed.
- onComplete(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Registers the listener to be called when an execution is complete for all of the configured policies are
exceeded.
- onFailedAttempt(CheckedConsumer<? extends ExecutionAttemptedEvent<R>>) - Method in class net.jodah.failsafe.Fallback
-
Registers the listener to be called when an execution attempt fails.
- onFailedAttempt(CheckedConsumer<? extends ExecutionAttemptedEvent<R>>) - Method in class net.jodah.failsafe.RetryPolicy
-
Registers the listener to be called when an execution attempt fails.
- onFailure(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Registers the listener to be called when an execution fails.
- onFailure(ExecutionResult) - Method in class net.jodah.failsafe.PolicyExecutor
-
- onFailure(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.PolicyListeners
-
Registers the
listener to be called when a
Policy fails to handle an execution.
- onFailureAsync(ExecutionResult, Scheduler, FailsafeFuture<Object>) - Method in class net.jodah.failsafe.PolicyExecutor
-
Performs potentially asynchrononus post-execution handling for a failed result, possibly creating a new
result, else returning the original result.
- 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.
- onRetriesExceeded(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.RetryPolicy
-
- onRetry(CheckedConsumer<? extends ExecutionAttemptedEvent<R>>) - Method in class net.jodah.failsafe.RetryPolicy
-
Registers the listener to be called before an execution is retried.
- onSuccess(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Registers the listener to be called when an execution is successful.
- onSuccess(ExecutionResult) - Method in class net.jodah.failsafe.PolicyExecutor
-
- onSuccess(CheckedConsumer<? extends ExecutionCompletedEvent<R>>) - Method in class net.jodah.failsafe.PolicyListeners
-
Registers the
listener to be called when a
Policy succeeds in handling an execution.
- open() - Method in class net.jodah.failsafe.CircuitBreaker
-
Opens the circuit.
- recordFailure() - Method in class net.jodah.failsafe.CircuitBreaker
-
Records an execution failure.
- 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
#isFailure(R, 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(R) - Method in class net.jodah.failsafe.CircuitBreaker
-
Records an execution result as a success or failure based on the failure configuration as determined by
#isFailure(R, Throwable).
- recordSuccess() - Method in class net.jodah.failsafe.CircuitBreaker
-
Records an execution success.
- retry() - Method in class net.jodah.failsafe.AsyncExecution
-
Records an execution if one has not been recorded yet, attempts to schedule a retry if necessary, and returns
true if a retry has been scheduled else returns false and completes the execution and associated
CompletableFuture.
- retryFor(Object) - Method in class net.jodah.failsafe.AsyncExecution
-
Records an execution if one has not been recorded yet for the result, attempts to schedule a retry if
necessary, and returns true if a retry has been scheduled else returns false and completes the
execution and associated CompletableFuture.
- retryFor(Object, Throwable) - Method in class net.jodah.failsafe.AsyncExecution
-
Records an execution if one has not been recorded yet for the result or failure, attempts to
schedule a retry if necessary, and returns true if a retry has been scheduled else returns false
and completes the execution and associated CompletableFuture.
- 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 CompletableFuture as complete.
- RetryPolicy<R> - 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 allows 3 execution attempts max with no delay.
- run(CheckedRunnable) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the runnable until successful or until the configured policies are exceeded.
- run(ContextualRunnable) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the runnable until successful or until the configured policies are 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
-
- runAsync(CheckedRunnable) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the runnable asynchronously until successful or until the configured policies are exceeded.
- runAsync(ContextualRunnable) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the runnable asynchronously until successful or until the configured policies are exceeded.
- runAsyncExecution(AsyncRunnable) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Executes the runnable asynchronously until successful or until the configured policies are exceeded.
- with(long, boolean, boolean) - Method in class net.jodah.failsafe.ExecutionResult
-
Returns a copy of the ExecutionResult with the waitNanos, complete and success values.
- with(P...) - Static method in class net.jodah.failsafe.Failsafe
-
Creates and returns a new
FailsafeExecutor instance that will handle failures according to the given
policies.
- with(List<? extends Policy<R>>) - Static method in class net.jodah.failsafe.Failsafe
-
Creates and returns a new
FailsafeExecutor instance that will handle failures according to the given
policies.
- with(ScheduledExecutorService) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Configures the executor to use for performing asynchronous executions and listener callbacks.
- with(ExecutorService) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Configures the executor to use for performing asynchronous executions and listener callbacks.
- with(Scheduler) - Method in class net.jodah.failsafe.FailsafeExecutor
-
Configures the scheduler to use for performing asynchronous executions and listener callbacks.
- withBackoff(long, long, ChronoUnit) - 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, ChronoUnit, 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.
- withCancel(boolean) - Method in class net.jodah.failsafe.Timeout
-
Configures the policy to cancel an execution if it times out.
- withDelay(Duration) - Method in class net.jodah.failsafe.CircuitBreaker
-
Sets the delay to wait in OPEN state before transitioning to half-open.
- withDelay(DelayFunction<R, ? extends Throwable>) - Method in class net.jodah.failsafe.DelayablePolicy
-
Sets the delayFunction that computes the next delay before allowing another execution.
- withDelay(Duration) - Method in class net.jodah.failsafe.RetryPolicy
-
Sets the delay to occur between retries.
- withDelay(long, long, ChronoUnit) - Method in class net.jodah.failsafe.RetryPolicy
-
Sets a random delay between the delayMin and delayMax (inclusive) to occur between retries.
- withDelayOn(DelayFunction<R, F>, Class<F>) - Method in class net.jodah.failsafe.DelayablePolicy
-
Sets the delayFunction that computes the next delay before allowing another execution.
- withDelayWhen(DelayFunction<R, ? extends Throwable>, R) - Method in class net.jodah.failsafe.DelayablePolicy
-
Sets the delayFunction that computes the next delay before allowing another execution.
- withFailureRateThreshold(int, int, Duration) - Method in class net.jodah.failsafe.CircuitBreaker
-
Configures time based failure rate thresholding by setting the percentage rate of failures, from 1 to 100, that
must occur within the rolling failureThresholdingPeriod when in a CLOSED state in order to open the
circuit.
- withFailureThreshold(int) - Method in class net.jodah.failsafe.CircuitBreaker
-
Configures count based failure thresholding by setting the number of consecutive 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
-
Configures count based failure thresholding by setting the ratio of successive failures to executions that must
occur when in a CLOSED state in order to open the circuit.
- withFailureThreshold(int, Duration) - Method in class net.jodah.failsafe.CircuitBreaker
-
Configures time based failure thresholding by setting the number of failures that must occur within the failureThresholdingPeriod when in a CLOSED state in order to open the circuit.
- withFailureThreshold(int, int, Duration) - Method in class net.jodah.failsafe.CircuitBreaker
-
Configures time based failure thresholding by setting the number of failures that must occur within the failureThresholdingPeriod when in a CLOSED state in order to open the circuit.
- withJitter(double) - Method in class net.jodah.failsafe.RetryPolicy
-
Sets the jitterFactor to randomly vary retry delays by.
- withJitter(Duration) - Method in class net.jodah.failsafe.RetryPolicy
-
Sets the jitter to randomly vary retry delays by.
- withMaxAttempts(int) - Method in class net.jodah.failsafe.RetryPolicy
-
Sets the max number of execution attempts to perform.
- withMaxDuration(Duration) - 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 when an execution attempt fails.
- withResult(Object) - Method in class net.jodah.failsafe.ExecutionResult
-
Returns a copy of the ExecutionResult with the result value, and complete and success set to true.
- withSuccessThreshold(int) - Method in class net.jodah.failsafe.CircuitBreaker
-
Configures count based success thresholding by setting the number of consecutive 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
-
Configures count based success thresholding by setting the ratio of successive successful executions that must
occur when in a HALF_OPEN state in order to close the circuit.
- withWaitNanos(long) - Method in class net.jodah.failsafe.ExecutionResult
-
Returns a copy of the ExecutionResult with the waitNanos value.