Introduce MethodRetryEvent for @Retryable execution

Closes gh-35382
This commit is contained in:
Juergen Hoeller
2025-12-23 09:28:23 +01:00
parent fc1ff88ede
commit 92a43c007a
10 changed files with 367 additions and 30 deletions
@@ -258,7 +258,7 @@ class RetryTemplateTests {
assertThatExceptionOfType(RetryException.class)
.isThrownBy(() -> retryTemplate.execute(retryable))
.withMessageMatching("Interrupted during back-off for retryable operation '.+?'")
.withMessageMatching("Interrupted during back-off for retryable operation '.+?'; aborting execution")
.withCause(exception)
.satisfies(throwable -> assertThat(throwable.getSuppressed()).isEmpty())
.satisfies(throwable -> assertThat(throwable.getRetryCount()).isZero())