Skip navigation links
A B C D F G I L N O P R S T W 

A

abortIf(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies that retries should be aborted if the completionPredicate matches the completion result.
abortIf(Predicate<T>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies that retries should be aborted if the resultPredicate matches the result.
abortOn(Class<? extends Throwable>...) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when retries should be aborted.
abortOn(List<Class<? extends Throwable>>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when retries should be aborted.
abortOn(Predicate<? extends Throwable>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies that retries should be aborted if the failurePredicate matches the failure.
abortWhen(Object) - Method in class net.jodah.recurrent.RetryPolicy
Specifies that retries should be aborted if the invocation result matches the result.
allowsRetries() - Method in class net.jodah.recurrent.RetryPolicy
Returns whether the policy allows any retries based on the configured maxRetries and maxDuration.
allowsRetriesFor(Object, Throwable) - Method in class net.jodah.recurrent.RetryPolicy
Returns whether the policy will allow retries for the failure.
AsyncCallable<T> - Interface in net.jodah.recurrent
A callable that can manually trigger asynchronous retries or completion for an invocation.
AsyncInvocation - Class in net.jodah.recurrent
Tracks asynchronous invocations and allows retries to be scheduled according to a RetryPolicy.
AsyncListeners<T> - Class in net.jodah.recurrent
Recurrent event listeners that are called asynchronously on the Scheduler or ScheduledExecutorService associated with the Recurrent call.
AsyncListeners() - Constructor for class net.jodah.recurrent.AsyncListeners
 
AsyncRecurrent - Interface in net.jodah.recurrent
 
AsyncRunnable - Interface in net.jodah.recurrent
A runnable that can manually trigger asynchronous retries or completion for an invocation.

B

BiPredicate<T,U> - Interface in net.jodah.recurrent.util
 

C

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.

D

DefaultScheduledFuture<T> - Class in net.jodah.recurrent.util.concurrent
A default ScheduledFuture implementation.
DefaultScheduledFuture() - Constructor for class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
 
Duration - Class in net.jodah.recurrent.util
Duration unit, consisting of length and time unit.
Duration(long, TimeUnit) - Constructor for class net.jodah.recurrent.util.Duration
 

F

future(Callable<CompletableFuture<T>>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.
future(ContextualCallable<CompletableFuture<T>>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.
futureAsync(AsyncCallable<CompletableFuture<T>>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until the resulting future is successfully completed or the configured RetryPolicy is exceeded.

G

get(Callable<T>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
get(ContextualCallable<T>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
get() - Method in class net.jodah.recurrent.RecurrentFuture
 
get(long, TimeUnit) - Method in class net.jodah.recurrent.RecurrentFuture
 
get(Callable<T>) - Method in interface net.jodah.recurrent.SyncRecurrent
Invokes the callable until a successful result is returned or the configured RetryPolicy is exceeded.
get(ContextualCallable<T>) - Method in interface net.jodah.recurrent.SyncRecurrent
Invokes the callable until a successful result is returned or the configured RetryPolicy is exceeded.
get() - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
 
get(long, TimeUnit) - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
 
getAsync(AsyncCallable<T>) - Method in interface net.jodah.recurrent.AsyncRecurrent
Invokes the callable asynchronously until a successful result is returned or the configured RetryPolicy is exceeded.
getAttemptCount() - Method in class 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.InvocationStats
Returns the elapsed time in milliseconds.
getElapsedNanos() - Method in class 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.InvocationStats
Returns the start time in milliseconds.
getStartNanos() - Method in class 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.

I

Invocation - Class in net.jodah.recurrent
Tracks invocations and determines when an invocation can be performed for a RetryPolicy.
Invocation(RetryPolicy) - Constructor for class net.jodah.recurrent.Invocation
Creates a new Invocation for the retryPolicy.
InvocationStats - Class in net.jodah.recurrent
Invocation statistics.
isCancelled() - Method in class net.jodah.recurrent.RecurrentFuture
 
isCancelled() - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
 
isComplete() - Method in class net.jodah.recurrent.Invocation
Returns whether the invocation is complete.
isDone() - Method in class net.jodah.recurrent.RecurrentFuture
 
isDone() - Method in class net.jodah.recurrent.util.concurrent.DefaultScheduledFuture
 

L

length - Variable in class net.jodah.recurrent.util.Duration
 
Listeners<T> - Class in net.jodah.recurrent
Recurrent event listeners.
Listeners() - Constructor for class net.jodah.recurrent.Listeners
 

N

net.jodah.recurrent - package net.jodah.recurrent
 
net.jodah.recurrent.event - package net.jodah.recurrent.event
 
net.jodah.recurrent.util - package net.jodah.recurrent.util
 
net.jodah.recurrent.util.concurrent - package net.jodah.recurrent.util.concurrent
 
NONE - Static variable in class net.jodah.recurrent.util.Duration
 

O

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.

P

Predicate<T> - Interface in net.jodah.recurrent.util
 

R

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.

S

schedule(Callable<?>, long, TimeUnit) - Method in interface net.jodah.recurrent.util.concurrent.Scheduler
Schedules the callable to be called after the delay for the unit.
Scheduler - Interface in net.jodah.recurrent.util.concurrent
Schedules invocations.
Schedulers - Class in net.jodah.recurrent.util.concurrent
Scheduler utilities.
SuccessListener<R> - Interface in net.jodah.recurrent.event
Listens for an invocation success.
SyncRecurrent - Interface in net.jodah.recurrent
 

T

test(T, U) - Method in interface net.jodah.recurrent.util.BiPredicate
 
test(T) - Method in interface net.jodah.recurrent.util.Predicate
 
timeUnit - Variable in class net.jodah.recurrent.util.Duration
 
toNanos() - Method in class net.jodah.recurrent.util.Duration
 

W

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.
A B C D F G I L N O P R S T W 
Skip navigation links

Copyright © 2016. All Rights Reserved.