@ -8,7 +8,7 @@ in particular `@Retryable` and `@ConcurrencyLimit` annotations for method invoca
@@ -8,7 +8,7 @@ in particular `@Retryable` and `@ConcurrencyLimit` annotations for method invoca
[[resilience-retryable]]
== Using `@Retryable`
`@Retryable` is a common annotation specifying retry characteristics for an individual
`@Retryable` is a common annotation that specifies retry characteristics for an individual
method (with the annotation declared at the method level), or for all proxy-invoked
methods in a given class hierarchy (with the annotation declared at the type level).
@ -21,10 +21,10 @@ public void sendNotification() {
@@ -21,10 +21,10 @@ public void sendNotification() {
----
By default, the method invocation will be retried for any exception thrown: with at
most 3 retry attempts after an initial failure, and a delay of 1 second in-between.
most 3 retry attempts after an initial failure, and a delay of 1 second between attempts.
This can be specifically adapted for every method if necessary, for example narrowing
the exceptions to retry::
This can be specifically adapted for every method if necessary – for example, by narrowing
the exceptions to retry:
[source,java,indent=0,subs="verbatim,quotes"]
----
@ -51,20 +51,23 @@ return type, decorating the pipeline with Reactor's retry capabilities:
@@ -51,20 +51,23 @@ return type, decorating the pipeline with Reactor's retry capabilities:
which is available since Spring Framework 1.0 for programmatic use with the AOP framework.
which has been available since Spring Framework 1.0 for programmatic use with the AOP
framework.
[[resilience-enable]]
@ -104,7 +109,7 @@ which is available since Spring Framework 1.0 for programmatic use with the AOP
@@ -104,7 +109,7 @@ which is available since Spring Framework 1.0 for programmatic use with the AOP
Note that like many of Spring's core annotation-based features, `@Retryable` and
`@ConcurrencyLimit` are designed as metadata that you can choose to honor or ignore.
The most convenient way of enabling actual processing of the resilience annotations
The most convenient way to enable actual processing of the resilience annotations
through AOP interception is to declare `@EnableResilientMethods` on a corresponding
configuration class. Alternatively, you may declare `RetryAnnotationBeanPostProcessor`