Skip to content

Commit 6f54c12

Browse files
committed
3.1 What's New Doc
1 parent f128c94 commit 6f54c12

File tree

2 files changed

+63
-56
lines changed

2 files changed

+63
-56
lines changed

src/reference/asciidoc/appendix.adoc

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,68 @@ See <<whats-new>>.
2929
[[previous-whats-new]]
3030
=== Previous Releases
3131

32+
==== Changes in 3.0 Since 2.4
33+
34+
===== Java 17, Spring Framework 6.0
35+
36+
This version requires Spring Framework 6.0 and Java 17
37+
38+
===== Remoting
39+
40+
The remoting feature (using RMI) is no longer supported.
41+
42+
===== Observation
43+
44+
Enabling observation for timers and tracing using Micrometer is now supported.
45+
See <<micrometer-observation>> for more information.
46+
47+
[[x30-Native]]
48+
===== Native Images
49+
50+
Support for creating native images is provided.
51+
See <<native-images>> for more information.
52+
53+
===== AsyncRabbitTemplate
54+
55+
IMPORTANT: The `AsyncRabbitTemplate` now returns `CompletableFuture` s instead of `ListenableFuture` s.
56+
See <<async-template>> for more information.
57+
58+
===== Stream Support Changes
59+
60+
IMPORTANT: `RabbitStreamOperations` and `RabbitStreamTemplate` methods now return `CompletableFuture` instead of `ListenableFuture`.
61+
62+
Super streams and single active consumers thereon are now supported.
63+
64+
See <<stream-support>> for more information.
65+
66+
===== `@RabbitListener` Changes
67+
68+
Batch listeners can now consume `Collection<?>` as well as `List<?>`.
69+
The batch messaging adapter now ensures that the method is suitable for consuming batches.
70+
When setting the container factory `consumerBatchEnabled` to `true`, the `batchListener` property is also set to `true`.
71+
See <<receiving-batch>> for more information.
72+
73+
`MessageConverter` s can now return `Optional.empty()` for a null value; this is currently implemented by the `Jackson2JsonMessageConverter`.
74+
See <<Jackson2JsonMessageConverter-from-message>> for more information
75+
76+
You can now configure a `ReplyPostProcessor` via the container factory rather than via a property on `@RabbitListener`.
77+
See <<async-annotation-driven-reply>> for more information.
78+
79+
The `@RabbitListener` (and `@RabbitHandler`) methods can now be declared as Kotlin `suspend` functions.
80+
See <<async-returns>> for more information.
81+
82+
Starting with version 3.0.5, listeners with async return types (including Kotlin suspend functions) invoke the `RabbitListenerErrorHandler` (if configured) after a failure.
83+
Previously, the error handler was only invoked with synchronous invocations.
84+
85+
===== Connection Factory Changes
86+
87+
The default `addressShuffleMode` in `AbstractConnectionFactory` is now `RANDOM`.
88+
This results in connecting to a random host when multiple addresses are provided.
89+
See <<cluster>> for more information.
90+
91+
The `LocalizedQueueConnectionFactory` no longer uses the RabbitMQ `http-client` library to determine which node is the leader for a queue.
92+
See <<queue-affinity>> for more information.
93+
3294
==== Changes in 2.4 Since 2.3
3395

3496
This section describes the changes between version 2.3 and version 2.4.

src/reference/asciidoc/whats-new.adoc

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,5 @@
55

66
==== Java 17, Spring Framework 6.0
77

8-
This version requires Spring Framework 6.0 and Java 17
8+
This version requires Spring Framework 6.1 and Java 17.
99

10-
==== Remoting
11-
12-
The remoting feature (using RMI) is no longer supported.
13-
14-
==== Observation
15-
16-
Enabling observation for timers and tracing using Micrometer is now supported.
17-
See <<micrometer-observation>> for more information.
18-
19-
[[x30-Native]]
20-
==== Native Images
21-
22-
Support for creating native images is provided.
23-
See <<native-images>> for more information.
24-
25-
==== AsyncRabbitTemplate
26-
27-
IMPORTANT: The `AsyncRabbitTemplate` now returns `CompletableFuture` s instead of `ListenableFuture` s.
28-
See <<async-template>> for more information.
29-
30-
==== Stream Support Changes
31-
32-
IMPORTANT: `RabbitStreamOperations` and `RabbitStreamTemplate` methods now return `CompletableFuture` instead of `ListenableFuture`.
33-
34-
Super streams and single active consumers thereon are now supported.
35-
36-
See <<stream-support>> for more information.
37-
38-
==== `@RabbitListener` Changes
39-
40-
Batch listeners can now consume `Collection<?>` as well as `List<?>`.
41-
The batch messaging adapter now ensures that the method is suitable for consuming batches.
42-
When setting the container factory `consumerBatchEnabled` to `true`, the `batchListener` property is also set to `true`.
43-
See <<receiving-batch>> for more information.
44-
45-
`MessageConverter` s can now return `Optional.empty()` for a null value; this is currently implemented by the `Jackson2JsonMessageConverter`.
46-
See <<Jackson2JsonMessageConverter-from-message>> for more information
47-
48-
You can now configure a `ReplyPostProcessor` via the container factory rather than via a property on `@RabbitListener`.
49-
See <<async-annotation-driven-reply>> for more information.
50-
51-
The `@RabbitListener` (and `@RabbitHandler`) methods can now be declared as Kotlin `suspend` functions.
52-
See <<async-returns>> for more information.
53-
54-
Starting with version 3.0.5, listeners with async return types (including Kotlin suspend functions) invoke the `RabbitListenerErrorHandler` (if configured) after a failure.
55-
Previously, the error handler was only invoked with synchronous invocations.
56-
57-
==== Connection Factory Changes
58-
59-
The default `addressShuffleMode` in `AbstractConnectionFactory` is now `RANDOM`.
60-
This results in connecting to a random host when multiple addresses are provided.
61-
See <<cluster>> for more information.
62-
63-
The `LocalizedQueueConnectionFactory` no longer uses the RabbitMQ `http-client` library to determine which node is the leader for a queue.
64-
See <<queue-affinity>> for more information.

0 commit comments

Comments
 (0)