File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
spring-amqp/src/main/java/org/springframework/amqp/support Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -300,9 +300,6 @@ project('spring-amqp') {
300
300
301
301
dependencies {
302
302
api ' org.springframework:spring-core'
303
- api(" org.springframework.retry:spring-retry:$springRetryVersion " ) {
304
- exclude group : ' org.springframework'
305
- }
306
303
optionalApi ' org.springframework:spring-messaging'
307
304
optionalApi ' org.springframework:spring-oxm'
308
305
optionalApi ' org.springframework:spring-context'
@@ -357,6 +354,9 @@ project('spring-rabbit') {
357
354
api ' org.springframework:spring-messaging'
358
355
api ' org.springframework:spring-tx'
359
356
api ' io.micrometer:micrometer-observation'
357
+ api(" org.springframework.retry:spring-retry:$springRetryVersion " ) {
358
+ exclude group : ' org.springframework'
359
+ }
360
360
361
361
optionalApi ' org.springframework:spring-aop'
362
362
optionalApi ' org.springframework:spring-webflux'
Original file line number Diff line number Diff line change 20
20
21
21
import org .springframework .amqp .core .Address ;
22
22
import org .springframework .amqp .core .Message ;
23
- import org .springframework .retry . RetryContext ;
23
+ import org .springframework .core . AttributeAccessor ;
24
24
25
25
/**
26
26
* Type safe accessor for retried message sending.
27
27
*
28
28
* @author Gary Russell
29
+ * @author Artem Bilan
30
+ *
29
31
* @since 2.0.6
30
32
*
31
33
*/
@@ -50,7 +52,7 @@ private SendRetryContextAccessor() {
50
52
* @return the message.
51
53
* @see #MESSAGE
52
54
*/
53
- public static @ Nullable Message getMessage (RetryContext context ) {
55
+ public static @ Nullable Message getMessage (AttributeAccessor context ) {
54
56
return (Message ) context .getAttribute (MESSAGE );
55
57
}
56
58
@@ -60,7 +62,7 @@ private SendRetryContextAccessor() {
60
62
* @return the address.
61
63
* @see #ADDRESS
62
64
*/
63
- public static @ Nullable Address getAddress (RetryContext context ) {
65
+ public static @ Nullable Address getAddress (AttributeAccessor context ) {
64
66
return (Address ) context .getAttribute (ADDRESS );
65
67
}
66
68
You can’t perform that action at this time.
0 commit comments