V - The result typepublic class FutureRetryResultProcessor<V> extends AsyncRetryResultProcessor<Future<V>>
RetryResultProcessor for a plain Future. If a RetryCallback
returns a Future this processor can be used internally by the
RetryTemplate to wrap it and process the result.RetryResultProcessor.Result<T>| Constructor and Description |
|---|
FutureRetryResultProcessor() |
| Modifier and Type | Method and Description |
|---|---|
RetryResultProcessor.Result<Future<V>> |
process(Future<V> future,
Supplier<RetryResultProcessor.Result<Future<V>>> supplier,
Consumer<Throwable> handler,
ScheduledExecutorService reschedulingExecutor,
BackoffPeriodSupplier lastBackoffPeriodSupplier,
RetryContext ctx) |
protected Future<V> |
scheduleNewAttemptAfterDelay(Supplier<RetryResultProcessor.Result<Future<V>>> supplier,
ScheduledExecutorService reschedulingExecutor,
long rescheduleAfterMillis,
RetryContext ctx) |
doNewAttempt, handleExceptionpublic RetryResultProcessor.Result<Future<V>> process(Future<V> future, Supplier<RetryResultProcessor.Result<Future<V>>> supplier, Consumer<Throwable> handler, ScheduledExecutorService reschedulingExecutor, BackoffPeriodSupplier lastBackoffPeriodSupplier, RetryContext ctx)
protected Future<V> scheduleNewAttemptAfterDelay(Supplier<RetryResultProcessor.Result<Future<V>>> supplier, ScheduledExecutorService reschedulingExecutor, long rescheduleAfterMillis, RetryContext ctx) throws Throwable
scheduleNewAttemptAfterDelay in class AsyncRetryResultProcessor<Future<V>>ThrowableCopyright © 2019 SpringSource. All rights reserved.