A B C E F G H I J N O R S T W 

A

Attempt<V> - Interface in com.github.rholder.retry
An attempt of a call, which resulted either in a result returned by the call, or in a Throwable thrown by the call.
AttemptTimeLimiter<V> - Interface in com.github.rholder.retry
A rule to wrap any single attempt in a time limit, where it will possibly be interrupted if the limit is exceeded.
AttemptTimeLimiters - Class in com.github.rholder.retry
Factory class for instances of AttemptTimeLimiter

B

block(long) - Method in interface com.github.rholder.retry.BlockStrategy
Attempt to block for the designated amount of time.
BlockStrategies - Class in com.github.rholder.retry
Factory class for BlockStrategy instances.
BlockStrategy - Interface in com.github.rholder.retry
This is a strategy used to decide how a retryer should block between retry attempts.
build() - Method in class com.github.rholder.retry.RetryerBuilder
Builds the retryer.

C

call(Callable<V>) - Method in interface com.github.rholder.retry.AttemptTimeLimiter
 
call(Callable<V>) - Method in class com.github.rholder.retry.Retryer
Executes the given callable.
call() - Method in class com.github.rholder.retry.Retryer.RetryerCallable
Makes the enclosing retryer call the wrapped callable.
com.github.rholder.retry - package com.github.rholder.retry
 
computeSleepTime(Attempt) - Method in interface com.github.rholder.retry.WaitStrategy
Returns the time, in milliseconds, to sleep before retrying.

E

exceptionWait(Class<T>, Function<T, Long>) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an amount of time based on the Exception that occurred.
exponentialWait() - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to Long.MAX_VALUE.
exponentialWait(long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to the maximumTime.
exponentialWait(long, long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to the maximumTime.

F

fibonacciWait() - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to Long.MAX_VALUE.
fibonacciWait(long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to the maximumTime.
fibonacciWait(long, long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to the maximumTime.
fixedTimeLimit(long, TimeUnit) - Static method in class com.github.rholder.retry.AttemptTimeLimiters
For control over thread management, it is preferable to offer an ExecutorService through the other factory method, AttemptTimeLimiters.fixedTimeLimit(long, TimeUnit, ExecutorService).
fixedTimeLimit(long, TimeUnit, ExecutorService) - Static method in class com.github.rholder.retry.AttemptTimeLimiters
 
fixedWait(long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a wait strategy that sleeps a fixed amount of time before retrying.

G

get() - Method in interface com.github.rholder.retry.Attempt
Returns the result of the attempt, if any.
getAttemptNumber() - Method in interface com.github.rholder.retry.Attempt
The number, starting from 1, of this attempt.
getDelaySinceFirstAttempt() - Method in interface com.github.rholder.retry.Attempt
The delay since the start of the first attempt, in milliseconds.
getExceptionCause() - Method in interface com.github.rholder.retry.Attempt
Gets the exception thrown by the call
getLastFailedAttempt() - Method in exception com.github.rholder.retry.RetryException
Returns the last failed attempt
getNumberOfFailedAttempts() - Method in exception com.github.rholder.retry.RetryException
Returns the number of failed attempts
getResult() - Method in interface com.github.rholder.retry.Attempt
Gets the result of the call

H

hasException() - Method in interface com.github.rholder.retry.Attempt
Tells if the call threw an exception or not
hasResult() - Method in interface com.github.rholder.retry.Attempt
Tells if the call returned a result or not

I

incrementingWait(long, TimeUnit, long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy that sleeps a fixed amount of time after the first failed attempt and in incrementing amounts of time after each additional failed attempt.

J

join(WaitStrategy...) - Static method in class com.github.rholder.retry.WaitStrategies
Joins one or more wait strategies to derive a composite wait strategy.

N

neverStop() - Static method in class com.github.rholder.retry.StopStrategies
Returns a stop strategy which never stops retrying.
newBuilder() - Static method in class com.github.rholder.retry.RetryerBuilder
Constructs a new builder
noTimeLimit() - Static method in class com.github.rholder.retry.AttemptTimeLimiters
 
noWait() - Static method in class com.github.rholder.retry.WaitStrategies
Returns a wait strategy that doesn't sleep at all before retrying.

O

onRetry(Attempt<V>) - Method in interface com.github.rholder.retry.RetryListener
This method with fire no matter what the result is and before the rejection predicate and stop strategies are applied.

R

randomWait(long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy that sleeps a random amount of time before retrying.
randomWait(long, TimeUnit, long, TimeUnit) - Static method in class com.github.rholder.retry.WaitStrategies
Returns a strategy that sleeps a random amount of time before retrying.
Retryer<V> - Class in com.github.rholder.retry
A retryer, which executes a call, and retries it until it succeeds, or a stop strategy decides to stop retrying.
Retryer(StopStrategy, WaitStrategy, Predicate<Attempt<V>>) - Constructor for class com.github.rholder.retry.Retryer
Constructor
Retryer(AttemptTimeLimiter<V>, StopStrategy, WaitStrategy, Predicate<Attempt<V>>) - Constructor for class com.github.rholder.retry.Retryer
Constructor
Retryer(AttemptTimeLimiter<V>, StopStrategy, WaitStrategy, BlockStrategy, Predicate<Attempt<V>>) - Constructor for class com.github.rholder.retry.Retryer
Constructor
Retryer(AttemptTimeLimiter<V>, StopStrategy, WaitStrategy, BlockStrategy, Predicate<Attempt<V>>, Collection<RetryListener>) - Constructor for class com.github.rholder.retry.Retryer
Constructor
Retryer.RetryerCallable<X> - Class in com.github.rholder.retry
A Callable which wraps another Callable in order to add retrying behavior from a given Retryer instance.
RetryerBuilder<V> - Class in com.github.rholder.retry
A builder used to configure and create a Retryer.
RetryException - Exception in com.github.rholder.retry
An exception indicating that none of the attempts of the Retryer succeeded.
RetryException(int, Attempt<?>) - Constructor for exception com.github.rholder.retry.RetryException
If the last Attempt had an Exception, ensure it is available in the stack trace.
RetryException(String, int, Attempt<?>) - Constructor for exception com.github.rholder.retry.RetryException
If the last Attempt had an Exception, ensure it is available in the stack trace.
retryIfException() - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to retry if an exception (i.e.
retryIfException(Predicate<Throwable>) - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to retry if an exception satisfying the given predicate is thrown by the call.
retryIfExceptionOfType(Class<? extends Throwable>) - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to retry if an exception of the given class (or subclass of the given class) is thrown by the call.
retryIfResult(Predicate<V>) - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to retry if the result satisfies the given predicate.
retryIfRuntimeException() - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to retry if a runtime exception (i.e.
RetryListener - Interface in com.github.rholder.retry
This listener provides callbacks for several events that occur when running code through a Retryer instance.

S

shouldStop(Attempt) - Method in interface com.github.rholder.retry.StopStrategy
Returns true if the retryer should stop retrying.
stopAfterAttempt(int) - Static method in class com.github.rholder.retry.StopStrategies
Returns a stop strategy which stops after N failed attempts.
stopAfterDelay(long) - Static method in class com.github.rholder.retry.StopStrategies
stopAfterDelay(long, TimeUnit) - Static method in class com.github.rholder.retry.StopStrategies
Returns a stop strategy which stops after a given delay.
StopStrategies - Class in com.github.rholder.retry
Factory class for StopStrategy instances.
StopStrategy - Interface in com.github.rholder.retry
A strategy used to decide if a retryer must stop retrying after a failed attempt or not.

T

threadSleepStrategy() - Static method in class com.github.rholder.retry.BlockStrategies
Returns a block strategy that puts the current thread to sleep between retries.

W

WaitStrategies - Class in com.github.rholder.retry
Factory class for instances of WaitStrategy.
WaitStrategy - Interface in com.github.rholder.retry
A strategy used to decide how long to sleep before retrying after a failed attempt.
withAttemptTimeLimiter(AttemptTimeLimiter<V>) - Method in class com.github.rholder.retry.RetryerBuilder
Configures the retryer to limit the duration of any particular attempt by the given duration.
withBlockStrategy(BlockStrategy) - Method in class com.github.rholder.retry.RetryerBuilder
Sets the block strategy used to decide how to block between retry attempts.
withRetryListener(RetryListener) - Method in class com.github.rholder.retry.RetryerBuilder
Adds a listener that will be notified of each attempt that is made
withStopStrategy(StopStrategy) - Method in class com.github.rholder.retry.RetryerBuilder
Sets the stop strategy used to decide when to stop retrying.
withWaitStrategy(WaitStrategy) - Method in class com.github.rholder.retry.RetryerBuilder
Sets the wait strategy used to decide how long to sleep between failed attempts.
wrap(Callable<V>) - Method in class com.github.rholder.retry.Retryer
Wraps the given Callable in a Retryer.RetryerCallable, which can be submitted to an executor.
A B C E F G H I J N O R S T W