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.