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

A

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.

B

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

C

call(Invocation) - Method in interface net.jodah.recurrent.ContextualCallable
 
cancel(boolean) - Method in class net.jodah.recurrent.RecurrentFuture
 
canRetryOn(Throwable) - Method in class net.jodah.recurrent.RetryStats
Records a failed attempt, adjusts the wait time and returns whether a retry can be performed for the failure.
canRetryWhen(Object) - Method in class net.jodah.recurrent.RetryStats
Records a failed attempt, adjusts the wait time and returns whether a retry can be performed for the result .
canRetryWhen(Object, Throwable) - Method in class net.jodah.recurrent.RetryStats
Records a failed attempt, adjusts the wait time and returns whether a retry can be performed for the result and failure.
complete() - Method in class net.jodah.recurrent.Invocation
Completes the invocation, allowing any futures waiting on the invocation to complete.
complete(Object) - Method in class net.jodah.recurrent.Invocation
Completes the invocation with the result, allowing any futures waiting on the invocation to complete.
completeExceptionally(Throwable) - Method in class net.jodah.recurrent.Invocation
Completes the invocation with the given failure, allowing any waiting futures to complete.
CompletionListener<T> - Interface in net.jodah.recurrent.event
Listens for an asynchronous invocation to complete.
ContextualCallable<T> - Interface in net.jodah.recurrent
 
ContextualRunnable - Interface in net.jodah.recurrent
 

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(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.

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(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() - Method in class net.jodah.recurrent.RecurrentFuture
 
get(long, TimeUnit) - Method in class net.jodah.recurrent.RecurrentFuture
 
getDelay() - Method in class net.jodah.recurrent.RetryPolicy
Returns the delay between retries.
getDelayMultiplier() - Method in class net.jodah.recurrent.RetryPolicy
Returns the delay multiplier for backoff retries.
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.
getRetryCount() - Method in class net.jodah.recurrent.RetryStats
Gets the number of retries that have been attempted so far.
getWaitTime() - Method in class net.jodah.recurrent.RetryStats
Returns the wait time in nanoseconds.

I

Invocation - Class in net.jodah.recurrent
An invocation that accepts retry and completion requests.
Invocation(RetryPolicy) - Constructor for class net.jodah.recurrent.Invocation
 
isCancelled() - Method in class net.jodah.recurrent.RecurrentFuture
 
isDone() - Method in class net.jodah.recurrent.RecurrentFuture
 

L

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
 
NONE - Static variable in class net.jodah.recurrent.util.Duration
 

O

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

Recurrent - Class in net.jodah.recurrent
Performs invocations with synchronous or asynchronous retries according to a RetryPolicy.
RecurrentFuture<T> - Class in net.jodah.recurrent
 
retry() - Method in class net.jodah.recurrent.Invocation
Retries a failed invocation, returning true if the retry can be attempted else false if the retry policy has been exceeded.
retryOn(Throwable) - Method in class net.jodah.recurrent.Invocation
Retries a failed invocation, returning true if the retry can be attempted for the failure else false if the retry policy has been exceeded.
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
Policy that defines when retries should be performed.
RetryPolicy() - Constructor for class net.jodah.recurrent.RetryPolicy
Creates a retry policy that retries forever with no delay between retries.
RetryStats - Class in net.jodah.recurrent
Statistics for the usage of a RetryPolicy.
RetryStats(RetryPolicy) - Constructor for class net.jodah.recurrent.RetryStats
 
retryWhen(Object) - Method in class net.jodah.recurrent.Invocation
Retries a failed invocation, returning true if the retry can be attempted for the result else false if the retry policy has been exceeded.
retryWhen(Object, Throwable) - Method in class net.jodah.recurrent.Invocation
Retries a failed invocation, returning true if the retry can be attempted for the result and failure else false if the retry policy has been exceeded.
retryWhen(T) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result.
retryWhen(Predicate<T>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result.
retryWhen(BiPredicate<T, ? extends Throwable>) - Method in class net.jodah.recurrent.RetryPolicy
Specifies when a retry should occur for a particular result and failure.
run(Invocation) - 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(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.

S

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.