For use with SyncTaskExecutor and SimpleAsyncTaskExecutor, we can provide a convenient wrapper for TaskCallback and also Callable/Runnable, as an alternative to explicit RetryTemplate invocations in custom task callbacks (which commonly leads to double-nested lambda expressions).
In combination with our concurrency limit support on both SyncTaskExecutor (#35460) and SimpleAsyncTaskExecutor, this org.springframework.core.retry.support.RetryTask completes a convenient resilience feature arrangement for programmatic purposes, matching what @ConcurrencyLimit and @Retryable provide for method interception.
For use with
SyncTaskExecutorandSimpleAsyncTaskExecutor, we can provide a convenient wrapper forTaskCallbackand alsoCallable/Runnable, as an alternative to explicitRetryTemplateinvocations in custom task callbacks (which commonly leads to double-nested lambda expressions).In combination with our concurrency limit support on both
SyncTaskExecutor(#35460) andSimpleAsyncTaskExecutor, thisorg.springframework.core.retry.support.RetryTaskcompletes a convenient resilience feature arrangement for programmatic purposes, matching what@ConcurrencyLimitand@Retryableprovide for method interception.