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

A

AbstractScheduledFuture<T> - Class in net.jodah.recurrent.util.concurrent
 
AbstractScheduledFuture() - Constructor for class net.jodah.recurrent.util.concurrent.AbstractScheduledFuture
 
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.
AsyncInvocation - Class in net.jodah.recurrent
Tracks asynchronous invocations and allows retries to be scheduled according to a RetryPolicy.

B

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

C

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.AbstractScheduledFuture
 
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.
compareTo(Delayed) - Method in class net.jodah.recurrent.util.concurrent.AbstractScheduledFuture
 
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
Returns true if a retry can be performed for the result or failure, else returns false and records and completes the invocation.
completed - Variable in class net.jodah.recurrent.Invocation
 
CompletionListener<T> - Interface in net.jodah.recurrent.event
Listens for an asynchronous invocation to complete.
ContextualCallable<T> - Interface in net.jodah.recurrent
A callable that can manually trigger retries or completion for an invocation.
ContextualRunnable - Interface in net.jodah.recurrent
A runnable that can manually trigger retries or completion for an invocation.
copy() - Method in class net.jodah.recurrent.RetryPolicy
Returns a copy of this RetryPolicy.

D

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

FailureListener - Interface in net.jodah.recurrent.event
Listens for an asynchronous invocation to fail.
future(Callable<CompletableFuture<T>>, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
future(Callable<CompletableFuture<T>>, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.
future(ContextualCallable<CompletableFuture<T>>, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
Invokes the callable, scheduling retries with the executor according to the retryPolicy.
future(ContextualCallable<CompletableFuture<T>>, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
Invokes the callable, scheduling retries with the scheduler according to the retryPolicy.

G

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, 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, 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, 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, Scheduler) - 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.AbstractScheduledFuture
 
get(long, TimeUnit) - Method in class net.jodah.recurrent.util.concurrent.AbstractScheduledFuture
 
getAttemptCount() - Method in class net.jodah.recurrent.Invocation
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.AbstractScheduledFuture
 
getDelayMultiplier() - Method in class net.jodah.recurrent.RetryPolicy
Returns the delay multiplier for backoff retries.
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.
getWaitTime() - 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
 
isCancelled() - Method in class net.jodah.recurrent.RecurrentFuture
 
isCancelled() - Method in class net.jodah.recurrent.util.concurrent.AbstractScheduledFuture
 
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.AbstractScheduledFuture
 

L

lastFailure - Variable in class net.jodah.recurrent.Invocation
 
lastResult - Variable in class net.jodah.recurrent.Invocation
 
length - Variable in class net.jodah.recurrent.util.Duration
 

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.Schedulers
 
onCompletion(T, Throwable) - Method in interface net.jodah.recurrent.event.CompletionListener
Handles the completion of a call.
onFailure(Throwable) - Method in interface net.jodah.recurrent.event.FailureListener
Handles the failure of a call.
onSuccess(T) - Method in interface net.jodah.recurrent.event.SuccessListener
Handles the successful completion of a call.

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 - Class in net.jodah.recurrent
Performs invocations with synchronous or asynchronous retries according to a RetryPolicy.
RecurrentFuture<T> - Class in net.jodah.recurrent
A future result of an asynchronous operation.
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.
retryFor(Object) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result.
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(Predicate<? extends Throwable>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular failure.
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(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result and failure.
retryWhen(Predicate<T>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result.
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, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.
run(Runnable, RetryPolicy) - Static method in class net.jodah.recurrent.Recurrent
Invokes the runnable, sleeping between invocation attempts according to the retryPolicy.
run(Runnable, RetryPolicy, ScheduledExecutorService) - Static method in class net.jodah.recurrent.Recurrent
Invokes the runnable, scheduling retries with the executor according to the retryPolicy.
run(Runnable, RetryPolicy, Scheduler) - Static method in class net.jodah.recurrent.Recurrent
Invokes the runnable, scheduling retries with the scheduler according to the retryPolicy.

S

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

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(CompletionListener<T>) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenCompleteAsync(CompletionListener<T>) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenCompleteAsync(CompletionListener<T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenFailure(FailureListener) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenFailureAsync(FailureListener) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenFailureAsync(FailureListener, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenSuccess(SuccessListener<T>) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenSuccessAsync(SuccessListener<T>) - Method in class net.jodah.recurrent.RecurrentFuture
 
whenSuccessAsync(SuccessListener<T>, ExecutorService) - Method in class net.jodah.recurrent.RecurrentFuture
 
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 © 2015. All Rights Reserved.