- call(AsyncInvocation) - Method in interface net.jodah.recurrent.AsyncCallable
-
- call(InvocationStats) - Method in interface net.jodah.recurrent.ContextualCallable
-
- cancel(boolean) - Method in class net.jodah.recurrent.RecurrentFuture
-
- cancel(boolean) - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
-
- canRetryFor(Object) - Method in class net.jodah.recurrent.Invocation
-
Returns true if a retry can be performed for the result, else returns false and completes the invocation.
- canRetryFor(Object, Throwable) - Method in class net.jodah.recurrent.Invocation
-
Returns true if a retry can be performed for the result or failure, else returns false and
completes the invocation.
- canRetryOn(Throwable) - Method in class net.jodah.recurrent.Invocation
-
Returns true if a retry can be performed for the failure, else returns false and completes the invocation.
- CheckedRunnable - Interface in net.jodah.recurrent
-
A Runnable that throws checked exceptions.
- compareTo(Delayed) - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
-
- complete() - Method in class net.jodah.recurrent.AsyncInvocation
-
Completes the invocation and the associated RecurrentFuture.
- complete(Object) - Method in class net.jodah.recurrent.AsyncInvocation
-
Attempts to complete the invocation and the associated RecurrentFuture with the result.
- complete(Object, Throwable) - Method in class net.jodah.recurrent.AsyncInvocation
-
Attempts to complete the invocation and the associated RecurrentFuture with the result and
failure.
- complete() - Method in class net.jodah.recurrent.Invocation
-
Completes the invocation.
- complete(Object) - Method in class net.jodah.recurrent.Invocation
-
Attempts to complete the invocation with the result.
- ContextualCallable<T> - Interface in net.jodah.recurrent
-
A callable that provides contextual invocation statistics.
- ContextualResultListener<R,F extends Throwable> - Interface in net.jodah.recurrent.event
-
Listens for an invocation result, providing
InvocationStats that describe invocations so far.
- ContextualRunnable - Interface in net.jodah.recurrent
-
A runnable that provides contextual invocation statistics.
- ContextualSuccessListener<R> - Interface in net.jodah.recurrent.event
-
Listens for an invocation success, providing
InvocationStats that describe invocations so far.
- copy() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns a copy of this RetryPolicy.
- 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 invocation is completed.
- onComplete(T, Throwable, InvocationStats) - Method in class net.jodah.recurrent.Listeners
-
Called when an invocation is completed.
- onFailedAttempt(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called after a failed attempt.
- onFailedAttempt(T, Throwable, InvocationStats) - 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, InvocationStats) - Method in class net.jodah.recurrent.Listeners
-
Called after the retry policy is exceeded and the result is a failure.
- onResult(R, F, InvocationStats) - Method in interface net.jodah.recurrent.event.ContextualResultListener
-
Handles an invocation result.
- onResult(R, F) - Method in interface net.jodah.recurrent.event.ResultListener
-
Handles an invocation result.
- onRetry(T, Throwable) - Method in class net.jodah.recurrent.Listeners
-
Called before a retry is attempted.
- onRetry(T, Throwable, InvocationStats) - Method in class net.jodah.recurrent.Listeners
-
Called before a retry is attempted.
- onSuccess(R, InvocationStats) - 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 invocation.
- onSuccess(T, InvocationStats) - Method in class net.jodah.recurrent.Listeners
-
Called after a successful invocation.
- recordFailure(Throwable) - Method in class net.jodah.recurrent.Invocation
-
Records a failed invocation attempt and returns true if a retry can be performed for the failure, else
returns false and completes the invocation.
- Recurrent<T> - Class in net.jodah.recurrent
-
Performs invocations 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 invocation result.
- retry() - Method in class net.jodah.recurrent.AsyncInvocation
-
Attempts to retry a failed invocation.
- retryFor(Object) - Method in class net.jodah.recurrent.AsyncInvocation
-
Attempts to retry a failed invocation.
- retryFor(Object, Throwable) - Method in class net.jodah.recurrent.AsyncInvocation
-
Attempts to retry a failed invocation.
- 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.AsyncInvocation
-
Attempts to retry a failed invocation.
- 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 invocation result matches the result and the retry policy is not
exceeded.
- run(CheckedRunnable) - Method in interface net.jodah.recurrent.AsyncRecurrent
-
Invokes the
runnable asynchronously until successful or until the configured
RetryPolicy is
exceeded.
- run(ContextualRunnable) - Method in interface net.jodah.recurrent.AsyncRecurrent
-
Invokes the
runnable asynchronously until successful or until the configured
RetryPolicy is
exceeded.
- run(AsyncInvocation) - Method in interface net.jodah.recurrent.AsyncRunnable
-
- run() - Method in interface net.jodah.recurrent.CheckedRunnable
-
- run(InvocationStats) - Method in interface net.jodah.recurrent.ContextualRunnable
-
- run(CheckedRunnable) - Method in interface net.jodah.recurrent.SyncRecurrent
-
Invokes the
runnable until successful or until the configured
RetryPolicy is exceeded.
- run(ContextualRunnable) - Method in interface net.jodah.recurrent.SyncRecurrent
-
Invokes the
runnable until successful or until the configured
RetryPolicy is exceeded.
- runAsync(AsyncRunnable) - Method in interface net.jodah.recurrent.AsyncRecurrent
-
Invokes 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 invocation is completed.
- whenComplete(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called when an invocation is completed.
- whenComplete(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when an invocation is completed.
- whenComplete(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called when an invocation is completed.
- whenCompleteAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an invocation 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 invocation is completed.
- whenCompleteAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously when an invocation 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 invocation is completed.
- whenFailedAttempt(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a failed invocation attempt.
- whenFailedAttempt(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a failed invocation attempt.
- whenFailedAttemptAsync(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously after a failed invocation 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 invocation
attempt.
- whenFailedAttemptAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously after a failed invocation 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 invocation
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 invocation.
- whenSuccess(SuccessListener<? super T>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after a successful invocation.
- whenSuccess(ContextualSuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called after a successful invocation.
- whenSuccess(SuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called after a successful invocation.
- whenSuccessAsync(ContextualSuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful invocation.
- whenSuccessAsync(ContextualSuccessListener<? super T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful invocation.
- whenSuccessAsync(SuccessListener<? super T>) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful invocation.
- whenSuccessAsync(SuccessListener<? super T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
-
Registers the listener to be called asynchronously after a successful invocation.
- with(T) - Method in interface net.jodah.recurrent.AsyncRecurrent
-
Configures the listeners to be called as invocation events occur.
- with(RetryPolicy) - Static method in class net.jodah.recurrent.Recurrent
-
Creates and returns a new Recurrent instance that will perform invocations and retries synchronously according to
the retryPolicy.
- with(RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Creates and returns a new Recurrent instance that will perform invocations 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 Recurrent instance that will perform invocations and retries asynchronously via the
scheduler according to the retryPolicy.
- with(Listeners<?>) - Method in interface net.jodah.recurrent.SyncRecurrent
-
Configures the listeners to be called as invocation 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.