Revise documentation for @⁠Retryable

This commit is contained in:
Sam Brannen 2025-09-29 17:38:50 +02:00
parent 8dd64602e8
commit b9e0a48e95
1 changed files with 6 additions and 3 deletions

View File

@ -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<Void> 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]]