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