- call(AsyncInvocation) - 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 can manually trigger retries or completion for an invocation.
- 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 can manually trigger retries or completion for an invocation.
- 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.
- get(Callable<T>, RetryPolicy) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, sleeping between invocation attempts according to the retryPolicy.
- get(Callable<T>, RetryPolicy, Listeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, sleeping between invocation attempts according to the retryPolicy, and
calling the listeners on recurrent events.
- get(Callable<T>, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
- get(Callable<T>, RetryPolicy, ScheduledExecutorService, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
- get(Callable<T>, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.
- get(Callable<T>, RetryPolicy, Scheduler, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.
- get(ContextualCallable<T>, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
- get(ContextualCallable<T>, RetryPolicy, ScheduledExecutorService, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
- get(ContextualCallable<T>, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.
- get(ContextualCallable<T>, RetryPolicy, Scheduler, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.
- get() - Method in class net.jodah.recurrent.RecurrentFuture
-
- get(long, TimeUnit) - Method in class net.jodah.recurrent.RecurrentFuture
-
- get() - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
-
- get(long, TimeUnit) - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
-
- getAttemptCount() - Method in class net.jodah.recurrent.Invocation
-
Gets the number of invocation attempts so far.
- getAttemptCount() - Method in interface net.jodah.recurrent.InvocationStats
-
Gets the number of invocation attempts so far.
- getDelay() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns the delay between retries.
- getDelay(TimeUnit) - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
-
- getDelayMultiplier() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns the delay multiplier for backoff retries.
- getElapsedMillis() - Method in class net.jodah.recurrent.Invocation
-
Returns the elapsed time in milliseconds.
- getElapsedMillis() - Method in interface net.jodah.recurrent.InvocationStats
-
Returns the elapsed time in milliseconds.
- getElapsedNanos() - Method in class net.jodah.recurrent.Invocation
-
Returns the elapsed time in nanoseconds.
- getElapsedNanos() - Method in interface net.jodah.recurrent.InvocationStats
-
Returns the elapsed time in nanoseconds.
- getLastFailure() - Method in class net.jodah.recurrent.Invocation
-
Returns the last failure that was recorded.
- getLastResult() - Method in class net.jodah.recurrent.Invocation
-
Returns the last result that was recorded.
- getMaxDelay() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns the max delay between backoff retries.
- getMaxDuration() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns the max duration to perform retries for.
- getMaxRetries() - Method in class net.jodah.recurrent.RetryPolicy
-
Returns the max retries.
- getStartMillis() - Method in class net.jodah.recurrent.Invocation
-
Returns the start time in milliseconds.
- getStartMillis() - Method in interface net.jodah.recurrent.InvocationStats
-
Returns the start time in milliseconds.
- getStartNanos() - Method in class net.jodah.recurrent.Invocation
-
Returns the start time in nanoseconds.
- getStartNanos() - Method in interface net.jodah.recurrent.InvocationStats
-
Returns the start time in nanoseconds.
- getWaitMillis() - Method in class net.jodah.recurrent.Invocation
-
Returns the wait time in milliseconds.
- getWaitNanos() - Method in class net.jodah.recurrent.Invocation
-
Returns the wait time in nanoseconds.
- 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 - Class in net.jodah.recurrent
-
Performs invocations with synchronous or asynchronous retries according to a
RetryPolicy.
- 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() - Method in interface net.jodah.recurrent.CheckedRunnable
-
- run(AsyncInvocation) - Method in interface net.jodah.recurrent.ContextualRunnable
-
- run(ContextualRunnable, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the executor according to the retryPolicy.
- run(ContextualRunnable, RetryPolicy, ScheduledExecutorService, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the executor according to the retryPolicy.
- run(ContextualRunnable, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.
- run(ContextualRunnable, RetryPolicy, Scheduler, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.
- run(CheckedRunnable, RetryPolicy) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, sleeping between invocation attempts according to the retryPolicy.
- run(CheckedRunnable, RetryPolicy, Listeners<?>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, sleeping between invocation attempts according to the retryPolicy, and
calling the listeners on recurrent events.
- run(CheckedRunnable, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the executor according to the retryPolicy.
- run(CheckedRunnable, RetryPolicy, ScheduledExecutorService, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the executor according to the retryPolicy.
- run(CheckedRunnable, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.
- run(CheckedRunnable, RetryPolicy, Scheduler, AsyncListeners<T>) - Static method in class net.jodah.recurrent.Recurrent
-
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.
- 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 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 after a failed invocation attempt.
- whenFailure(ContextualResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.Listeners
-
Registers the listener to be called after an invocation attempt fails.
- 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 when the retry policy is exceeded and the result is a failure.
- 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 when the retry policy is exceeded and the result is a
failure.
- whenRetryAsync(ContextualResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenRetryAsync(ResultListener<? super T, ? extends Throwable>) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- whenRetryAsync(ResultListener<? super T, ? extends Throwable>, ExecutorService) - Method in class net.jodah.recurrent.AsyncListeners
-
Registers the listener to be called asynchronously when the retry policy is exceeded and the result is a
failure.
- 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.
- 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.