- 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.RetryerCallable<X> - Class in com.github.rholder.retry
-
A Callable which wraps another callable in order to make it call by the enclosing retryer.
- 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.