You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes: #1085Fixes: #1084
* Make a `spring-rabbit-junit` as compile dependency for the
`spring-rabbit-test` for better end-user experience
* Also move `What's New` chapter to the top level as it is with other
projects
* Add a note about `spring-rabbit-junit` into `What's New`
Copy file name to clipboardExpand all lines: src/reference/asciidoc/whats-new.adoc
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
[[whats-new]]
2
-
===What's New
2
+
== What's New
3
3
4
-
==== Changes in 2.2 Since 2.1
4
+
=== Changes in 2.2 Since 2.1
5
5
6
6
This section describes the changes between version 2.1 and version 2.2.
7
7
8
-
===== Package Changes
8
+
==== Package Changes
9
9
10
10
The following classes/interfaces have been moved from `org.springframework.amqp.rabbit.core.support` to `org.springframework.amqp.rabbit.batch`:
11
11
@@ -15,25 +15,27 @@ The following classes/interfaces have been moved from `org.springframework.amqp.
15
15
16
16
In addition, `ListenerExecutionFailedException` has been moved from `org.springframework.amqp.rabbit.listener.exception` to `org.springframework.amqp.rabbit.support`.
17
17
18
-
===== Dependency Changes
18
+
==== Dependency Changes
19
19
20
20
JUnit (4) is now an optional dependency and will no longer appear as a transitive dependency.
21
21
22
-
===== "Breaking" API Changes
22
+
The `spring-rabbit-junit` module is now a *compile* dependency in the `spring-rabbit-test` module for a better target application development experience when with only a single `spring-rabbit-test` we get the full stack of testing utilities for AMQP components.
23
+
24
+
==== "Breaking" API Changes
23
25
24
26
the JUnit (5) `RabbitAvailableCondition.getBrokerRunning()` now returns a `BrokerRunningSupport` instance instead of a `BrokerRunning`, which depends on JUnit 4.
25
27
It has the same API so it's just a matter of changing the class name of any references.
26
28
See <<junit5-conditions>> for more information.
27
29
28
-
===== ListenerContainer Changes
30
+
==== ListenerContainer Changes
29
31
30
32
Messages with fatal exceptions are now rejected and NOT requeued, by default, even if the acknowledge mode is manual.
31
33
See <<exception-handling>> for more information.
32
34
33
35
Listener performance can now be monitored using Micrometer `Timer` s.
34
36
See <<micrometer>> for more information.
35
37
36
-
===== @RabbitListener Changes
38
+
==== @RabbitListener Changes
37
39
38
40
You can now configure an `executor` on each listener, overriding the factory configuration, to more easily identify threads associated with the listener.
39
41
You can now override the container factory's `acknowledgeMode` property with the annotation's `ackMode` property.
@@ -57,7 +59,7 @@ See <<Jackson2JsonMessageConverter-from-message>> for more information.
57
59
Similarly. the `Jackson2XmlMessageConverter` now assumes the content is XML if there is no `contentType` property, or it is the default (`application/octet-string`).
58
60
See <<jackson2xml>> for more information.
59
61
60
-
===== AMQP Logging Appenders Changes
62
+
==== AMQP Logging Appenders Changes
61
63
62
64
The Log4J and Logback `AmqpAppender` s now support a `verifyHostname` SSL option.
63
65
@@ -68,20 +70,20 @@ The appenders now support the `SaslConfig` property.
68
70
69
71
See <<logging>> for more information.
70
72
71
-
===== MessageListenerAdapter Changes
73
+
==== MessageListenerAdapter Changes
72
74
73
75
The `MessageListenerAdapter` provides now a new `buildListenerArguments(Object, Channel, Message)` method to build an array of arguments to be passed into target listener and an old one is deprecated.
74
76
See <<message-listener-adapter>> for more information.
75
77
76
-
===== Exchange/Queue Declaration Changes
78
+
==== Exchange/Queue Declaration Changes
77
79
78
80
The `ExchangeBuilder` and `QueueBuilder` fluent APIs used to create `Exchange` and `Queue` objects for declaration by `RabbitAdmin` now support "well known" arguments.
79
81
See <<builder-api>> for more information.
80
82
81
83
The `RabbitAdmin` has a new property `explicitDeclarationsOnly`.
82
84
See <<conditional-declaration>> for more information.
83
85
84
-
===== Connection Factory Changes
86
+
==== Connection Factory Changes
85
87
86
88
The `CachingConnectionFactory` has a new property `shuffleAddresses`.
87
89
When providing a list of broker node addresses, the list will be shuffled before creating a connection so that the order in which the connections are attempted is random.
@@ -93,11 +95,11 @@ See <<template-confirms>> for more information.
93
95
94
96
Also, the publisher confirm type is now specified with the `ConfirmType` enum instead of the two mutually exclusive setter methods.
95
97
96
-
===== New MessagePostProcessor Classes
98
+
==== New MessagePostProcessor Classes
97
99
98
100
Classes `DeflaterPostProcessor` and `InflaterPostProcessor` were added to support compression and decompression, respectively, when the message content-encoding is set to `deflate`.
99
101
100
-
===== Other Changes
102
+
==== Other Changes
101
103
102
104
The `Declarables` object (for declaring multiple queues, exchanges, bindings) now has a filtered getter for each type.
103
105
See <<collection-declaration>> for more information.
0 commit comments