- of(ScheduledExecutorService) - Static method in class net.jodah.recurrent.util.concurrent.Schedulers
-
Returns a Scheduler adapted from the executor.
- onComplete(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called when an execution is completed.
- onComplete(T, Throwable, ExecutionStats) - Method in class net.jodah.recurrent.Listeners
-
Called when an execution is completed.
- onFailedAttempt(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called after a failed attempt.
- onFailedAttempt(T, Throwable, ExecutionStats) - Method in class net.jodah.recurrent.Listeners
-
Called after a failed attempt.
- onFailure(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called after the retry policy is exceeded and the result is a failure.
- onFailure(T, Throwable, ExecutionStats) - Method in class net.jodah.recurrent.Listeners
-
Called after the retry policy is exceeded and the result is a failure.
- onResult(R, F, ExecutionStats) - Method in interface net.jodah.recurrent.event.ContextualResultListener
-
Handles an execution result.
- onResult(R, F) - Method in interface net.jodah.recurrent.event.ResultListener
-
Handles an execution result.
- onRetry(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called before a retry is attempted.
- onRetry(T, Throwable, ExecutionStats) - Method in class net.jodah.recurrent.Listeners
-
Called before a retry is attempted.
- onSuccess(R, ExecutionStats) - Method in interface net.jodah.recurrent.event.ContextualSuccessListener
-
Handles the successful completion of a call.
- onSuccess(R) - Method in interface net.jodah.recurrent.event.SuccessListener
-
Handles the successful completion of a call.
- onSuccess(T) - Method in class net.jodah.recurrent.Listeners
-
Called after a successful execution.
- onSuccess(T, ExecutionStats) - Method in class net.jodah.recurrent.Listeners
-
Called after a successful execution.
- Recurrent<T> - Class in net.jodah.recurrent
-
Performs executions with synchronous or asynchronous retries according to a
RetryPolicy.
- Recurrent() - Constructor for class net.jodah.recurrent.Recurrent
-
- RecurrentException - Exception in net.jodah.recurrent
-
Thrown when a synchronous Recurrent run() call fails with an exception.
- RecurrentFuture<T> - Class in net.jodah.recurrent
-
A future result of an asynchronous operation.
- ResultListener<R,F extends Throwable> - Interface in net.jodah.recurrent.event
-
Listens for an execution result.
- retry() - Method in class net.jodah.recurrent.AsyncExecution
-
Attempts to retry a failed execution.
- retryFor(Object) - Method in class net.jodah.recurrent.AsyncExecution
-
Attempts to retry a failed execution.
- retryFor(Object, Throwable) - Method in class net.jodah.recurrent.AsyncExecution
-
Attempts to retry a failed execution.
- retryIf(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.recurrent.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.recurrent.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.recurrent.AsyncExecution
-
Attempts to retry a failed execution.
- retryOn(Class<? extends Throwable>...) - Method in class net.jodah.recurrent.RetryPolicy
-
Specifies the failures to retry on.
- retryOn(List<Class<? extends Throwable>>) - Method in class net.jodah.recurrent.RetryPolicy
-
Specifies the failures to retry on.
- retryOn(Predicate<? extends Throwable>) - Method in class net.jodah.recurrent.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.recurrent
-
A policy that defines when retries should be performed.
- RetryPolicy() - Constructor for class net.jodah.recurrent.RetryPolicy
-
Creates a retry policy that always retries with no delay.
- RetryPolicy(RetryPolicy) - Constructor for class net.jodah.recurrent.RetryPolicy
-
Copy constructor.
- retryWhen(Object) - Method in class net.jodah.recurrent.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.recurrent.AsyncRecurrent
-
Executes the
runnable asynchronously until successful or until the configured
RetryPolicy is
exceeded.
- run(ContextualRunnable) - Method in class net.jodah.recurrent.AsyncRecurrent
-
Executes the
runnable asynchronously until successful or until the configured
RetryPolicy is
exceeded.
- run(AsyncExecution) - Method in interface net.jodah.recurrent.AsyncRunnable
-
- run() - Method in interface net.jodah.recurrent.CheckedRunnable
-
- run(ExecutionStats) - Method in interface net.jodah.recurrent.ContextualRunnable
-
- run(CheckedRunnable) - Method in class net.jodah.recurrent.SyncRecurrent
-
Executes the
runnable until successful or until the configured
RetryPolicy is exceeded.
- run(ContextualRunnable) - Method in class net.jodah.recurrent.SyncRecurrent
-
Executes the
runnable until successful or until the configured
RetryPolicy is exceeded.
- runAsync(AsyncRunnable) - Method in class net.jodah.recurrent.AsyncRecurrent
-
Executes the
runnable asynchronously until successful or until the configured
RetryPolicy is
exceeded.
- whenComplete(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called when an execution is completed.
- whenComplete(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called when an execution is completed.
- whenComplete(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when an execution is completed.
- whenComplete(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when an execution is completed.
- whenCompleteAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an execution is completed.
- whenCompleteAsync(ContextualResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an execution is completed.
- whenCompleteAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an execution is completed.
- whenCompleteAsync(ResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an execution is completed.
- whenFailedAttempt(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a failed execution attempt.
- whenFailedAttempt(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a failed execution attempt.
- whenFailedAttemptAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously after a failed execution attempt.
- whenFailedAttemptAsync(ContextualResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously on the executor after a failed execution
attempt.
- whenFailedAttemptAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously after a failed execution attempt.
- whenFailedAttemptAsync(ResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously on the executor after a failed execution
attempt.
- whenFailure(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called when the retry policy is exceeded and the result is a failure.
- whenFailure(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called when the retry policy is exceeded and the result is a failure.
- whenFailure(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when the retry policy is exceeded and the result is a failure.
- whenFailure(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when the retry policy is exceeded and the result is a failure.
- whenFailureAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenFailureAsync(ContextualResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenFailureAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenFailureAsync(ResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenRetry(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called before a retry is attempted.
- whenRetry(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called before a retry is attempted.
- whenRetryAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously before a retry is attempted.
- whenRetryAsync(ContextualResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously on the executor before a retry is attempted.
- whenRetryAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously before a retry is attempted.
- whenRetryAsync(ResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously on the executor before a retry is attempted.
- whenSuccess(ContextualSuccessListener<? super T>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a successful execution.
- whenSuccess(SuccessListener<? super T>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a successful execution.
- whenSuccess(ContextualSuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called after a successful execution.
- whenSuccess(SuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called after a successful execution.
- whenSuccessAsync(ContextualSuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful execution.
- whenSuccessAsync(ContextualSuccessListener<? super T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful execution.
- whenSuccessAsync(SuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful execution.
- whenSuccessAsync(SuccessListener<? super T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful execution.
- with(T) - Method in class net.jodah.recurrent.AsyncRecurrent
-
Configures the listeners to be called as execution events occur.
- with(RetryPolicy) - Static method in class net.jodah.recurrent.Recurrent
-
Creates and returns a new SyncRecurrent instance that will perform executions and retries synchronously according
to the retryPolicy.
- with(RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Creates and returns a new AsyncRecurrent instance that will perform executions and retries asynchronously via the
executor according to the retryPolicy.
- with(RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
-
Creates and returns a new AsyncRecurrent instance that will perform executions and retries asynchronously via the
scheduler according to the retryPolicy.
- with(Listeners<?>) - Method in class net.jodah.recurrent.SyncRecurrent
-
Configures the listeners to be called as execution events occur.
- withBackoff(long, long, TimeUnit) - Method in class net.jodah.recurrent.RetryPolicy
-
Sets the delay between retries, exponentially backing of to the maxDelay and multiplying successive
delays by a factor of 2.
- withBackoff(long, long, TimeUnit, double) - Method in class net.jodah.recurrent.RetryPolicy
-
Sets the delay between retries, exponentially backing of to the maxDelay and multiplying successive
delays by the delayMultiplier.
- withDelay(long, TimeUnit) - Method in class net.jodah.recurrent.RetryPolicy
-
Sets the delay between retries.
- withMaxDuration(long, TimeUnit) - Method in class net.jodah.recurrent.RetryPolicy
-
Sets the max duration to perform retries for.
- withMaxRetries(int) - Method in class net.jodah.recurrent.RetryPolicy
-
Sets the max number of retries to perform.