Browse Source

Revise documentation for @⁠Retryable

pull/35567/head
Sam Brannen 4 months ago
parent
commit
b9e0a48e95
  1. 9
      framework-docs/modules/ROOT/pages/core/resilience.adoc

9
framework-docs/modules/ROOT/pages/core/resilience.adoc

@ -37,6 +37,9 @@ public void sendNotification() { @@ -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() { @@ -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]]

Loading…
Cancel
Save