Commit f0d8135
committed
Add
The `RetryAdviceParser` uses a private constructor of the `org.springframework.core.retry.DefaultRetryPolicy`
for almost nothing.
It is better to propagate a `BackOff` bean definition down to the target `RequestHandlerRetryAdvice` API.
* Add `RequestHandlerRetryAdvice.setBackOff()` and use it from the `RetryAdviceParser` instead of the `retryPolicy` property.
* This also makes the end-user experience with `RequestHandlerRetryAdvice` better when we care really only about a `BackOff`
Related to: spring-projects/spring-framework#35963RequestHandlerRetryAdvice.setBackOff()
1 parent d9740d2 commit f0d8135
File tree
2 files changed
+14
-12
lines changed- spring-integration-core/src/main/java/org/springframework/integration
- config/xml
- handler/advice
2 files changed
+14
-12
lines changedLines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 71 | + | |
83 | 72 | | |
84 | 73 | | |
85 | 74 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
109 | 122 | | |
110 | 123 | | |
111 | 124 | | |
| |||
0 commit comments