| Package | Description |
|---|---|
| net.tascalate.concurrent | |
| net.tascalate.concurrent.delays |
| Modifier and Type | Method and Description |
|---|---|
RetryContext<T> |
RetryContext.overrideLastCallDuration(Duration newDuration) |
RetryContext<T> |
RetryContext.overrideLastError(Throwable newError) |
RetryContext<T> |
RetryContext.overrideLastResult(T newResult) |
RetryContext<T> |
RetryContext.overrideRetryCount(int newRetryCount) |
| Modifier and Type | Method and Description |
|---|---|
V |
RetryCallable.call(RetryContext<T> ctx) |
Duration |
DelayPolicy.delay(RetryContext<? extends T> retryContext) |
protected boolean |
RetryPolicy.exceptionClassRetryable(RetryContext<?> context) |
void |
RetryRunnable.run(RetryContext<Void> ctx) |
protected RetryPolicy.Verdict |
RetryPolicy.shouldContinue(RetryContext<? extends T> context) |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy<T> |
RetryPolicy.abortIf(Predicate<RetryContext<? extends T>> abortPredicate) |
RetryPolicy<T> |
RetryPolicy.retryIf(Predicate<RetryContext<? extends T>> retryPredicate) |
| Constructor and Description |
|---|
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
Set<Class<? extends Throwable>> retryOn,
Set<Class<? extends Throwable>> abortOn,
Predicate<RetryContext<? extends T>> retryPredicate,
Predicate<RetryContext<? extends T>> abortPredicate,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
RetryPolicy(int maxRetries,
Predicate<? super T> resultValidator,
Set<Class<? extends Throwable>> retryOn,
Set<Class<? extends Throwable>> abortOn,
Predicate<RetryContext<? extends T>> retryPredicate,
Predicate<RetryContext<? extends T>> abortPredicate,
DelayPolicy<? super T> backoff,
DelayPolicy<? super T> timeout) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
BoundedMaxDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
BoundedMinDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
ExponentialDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
FirstRetryNoDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
FixedIntervalDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
OnFailureNoDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
OnSuccessNoDelayPolicy.delay(RetryContext<? extends T> context) |
Duration |
RandomDelayPolicy.delay(RetryContext<? extends T> context) |
Copyright © 2021. All rights reserved.