From b9e0a48e9560223fccc5ac8ddb83410045a42d7b Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Mon, 29 Sep 2025 17:38:50 +0200 Subject: [PATCH] =?UTF-8?q?Revise=20documentation=20for=20@=E2=81=A0Retrya?= =?UTF-8?q?ble?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework-docs/modules/ROOT/pages/core/resilience.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/core/resilience.adoc b/framework-docs/modules/ROOT/pages/core/resilience.adoc index e6d9fe7437..56a65541fa 100644 --- a/framework-docs/modules/ROOT/pages/core/resilience.adoc +++ b/framework-docs/modules/ROOT/pages/core/resilience.adoc @@ -37,6 +37,9 @@ public void sendNotification() { } ---- +NOTE: `@Retryable(MessageDeliveryException.class)` is a shortcut for +`@Retryable(includes{nbsp}={nbsp}MessageDeliveryException.class)`. + Or for 5 retry attempts and an exponential back-off strategy with a bit of jitter: [source,java,indent=0,subs="verbatim,quotes"] @@ -68,9 +71,9 @@ public Mono sendNotification() { For details on the various characteristics, see the available annotation attributes in {spring-framework-api}/resilience/annotation/Retryable.html[`@Retryable`]. -NOTE: There are `String` variants with placeholder support available for several -attributes as well, as an alternative to the specifically typed annotation attributes used -in the above examples. +TIP: Several attributes in `@Retryable` have `String` variants that provide property +placeholder and SpEL support, as an alternative to the specifically typed annotation +attributes used in the above examples. [[resilience-annotations-concurrencylimit]]