V - The result typepublic class CompletableFutureRetryResultProcessor<V> extends AsyncRetryResultProcessor<CompletableFuture<V>>
RetryResultProcessor for a CompletableFuture. If a
RetryCallback returns a CompletableFuture this processor can be
used internally by the RetryTemplate to wrap it and process the result.RetryResultProcessor.Result<T>| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
CompletableFutureRetryResultProcessor() |
| Modifier and Type | Method and Description |
|---|---|
RetryResultProcessor.Result<CompletableFuture<V>> |
process(CompletableFuture<V> completable,
Supplier<RetryResultProcessor.Result<CompletableFuture<V>>> supplier,
Consumer<Throwable> handler,
ScheduledExecutorService reschedulingExecutor,
BackoffPeriodSupplier lastBackoffPeriodSupplier,
RetryContext ctx) |
protected CompletableFuture<V> |
scheduleNewAttemptAfterDelay(Supplier<RetryResultProcessor.Result<CompletableFuture<V>>> supplier,
ScheduledExecutorService reschedulingExecutor,
long rescheduleAfterMillis,
RetryContext ctx) |
doNewAttempt, handleExceptionpublic CompletableFutureRetryResultProcessor()
public RetryResultProcessor.Result<CompletableFuture<V>> process(CompletableFuture<V> completable, Supplier<RetryResultProcessor.Result<CompletableFuture<V>>> supplier, Consumer<Throwable> handler, ScheduledExecutorService reschedulingExecutor, BackoffPeriodSupplier lastBackoffPeriodSupplier, RetryContext ctx)
protected CompletableFuture<V> scheduleNewAttemptAfterDelay(Supplier<RetryResultProcessor.Result<CompletableFuture<V>>> supplier, ScheduledExecutorService reschedulingExecutor, long rescheduleAfterMillis, RetryContext ctx)
scheduleNewAttemptAfterDelay in class AsyncRetryResultProcessor<CompletableFuture<V>>Copyright © 2019 SpringSource. All rights reserved.