Commit 50218a9
authored
BAEL-9469 Accept maxAttempts(0) (#18867)
* Refactor SimpleRetryPolicy to use builder pattern
Refactor retry policy to use builder pattern and add a new bean for testing maxAttempts(0) functionality.
* Add test for no retries with maxAttempts set to 0
Added a new test case to verify behavior when maxAttempts is set to 0, ensuring no retries occur.
* Update pom.xml
* Implement reactive retry service and recovery method
Added reactive retry service and recovery method for reactive types.
* Implement reactive retry service and recovery method
Added a reactive implementation for retry service with a recovery method.
* Remove reactor-core dependency
Removed reactor-core dependency from pom.xml
* Remove reactive retry service and recover method
Removed reactive retry service and its recover method.
* Update MyServiceImpl.java
* Refactor SpringRetryIntegrationTest for clarity
Refactor SpringRetryIntegrationTest to autowire new template configuration and clean up comments.
* Remove unnecessary blank line in MyServiceImpl
* Remove unnecessary blank line in MyService.java
* Add method templateRetryService to MyService interface1 parent c847fe0 commit 50218a9
File tree
3 files changed
+42
-3
lines changed- spring-scheduling
- src
- main/java/com/baeldung/springretry
- test/java/com/baeldung/springretry
3 files changed
+42
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
33 | 59 | | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
80 | 93 | | |
0 commit comments