| Package | Description |
|---|---|
| net.tascalate.concurrent |
| Modifier and Type | Field and Description |
|---|---|
static RetryPolicy<Object> |
RetryPolicy.DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy<T> |
RetryPolicy.abortIf(Predicate<RetryContext<? extends T>> abortPredicate) |
RetryPolicy<T> |
RetryPolicy.abortOn(Class<? extends Throwable>... abortOnThrowables) |
RetryPolicy<T> |
RetryPolicy.abortOn(Collection<Class<? extends Throwable>> abortOnThrowables) |
RetryPolicy<T> |
RetryPolicy.acceptNullResult() |
RetryPolicy<T> |
RetryPolicy.rejectNullResult() |
RetryPolicy<T> |
RetryPolicy.retryIf(Predicate<RetryContext<? extends T>> retryPredicate) |
RetryPolicy<T> |
RetryPolicy.retryInfinitely() |
RetryPolicy<T> |
RetryPolicy.retryOn(Class<? extends Throwable>... retryOnThrowables) |
RetryPolicy<T> |
RetryPolicy.retryOn(Collection<Class<? extends Throwable>> retryOnThrowables) |
RetryPolicy<T> |
RetryPolicy.retryOnce() |
RetryPolicy<T> |
RetryPolicy.withBackoff(DelayPolicy<? super T> backoff) |
RetryPolicy<T> |
RetryPolicy.withMaxRetries(int maxRetries) |
RetryPolicy<T> |
RetryPolicy.withoutAbortRules() |
RetryPolicy<T> |
RetryPolicy.withoutBackoff() |
RetryPolicy<T> |
RetryPolicy.withoutRetryRules() |
RetryPolicy<T> |
RetryPolicy.withoutTimeout() |
RetryPolicy<T> |
RetryPolicy.withResultValidator(Predicate<? super T> resultValidator) |
RetryPolicy<T> |
RetryPolicy.withTimeout(DelayPolicy<? super T> timeout) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Promise<T> |
Promises.retry(Callable<T> codeBlock,
Executor executor,
RetryPolicy<? super T> retryPolicy) |
static <T extends C,C> |
Promises.retry(RetryCallable<T,C> codeBlock,
Executor executor,
RetryPolicy<? super C> retryPolicy) |
static Promise<Void> |
Promises.retry(RetryRunnable codeBlock,
Executor executor,
RetryPolicy<? super Void> retryPolicy) |
static Promise<Void> |
Promises.retry(Runnable codeBlock,
Executor executor,
RetryPolicy<? super Void> retryPolicy) |
static <T> Promise<T> |
Promises.retryFuture(Callable<? extends CompletionStage<T>> invoker,
RetryPolicy<? super T> retryPolicy) |
static <T extends C,C> |
Promises.retryFuture(RetryCallable<? extends CompletionStage<T>,C> futureFactory,
RetryPolicy<? super C> retryPolicy) |
static <T> Promise<T> |
Promises.retryOptional(Callable<Optional<T>> codeBlock,
Executor executor,
RetryPolicy<? super T> retryPolicy) |
static <T extends C,C> |
Promises.retryOptional(RetryCallable<Optional<T>,C> codeBlock,
Executor executor,
RetryPolicy<? super C> retryPolicy) |
Copyright © 2021. All rights reserved.