GH-1473: Revert CompletableFuture Changes
See https://github.com/spring-projects/spring-amqp/issues/1473 See https://github.com/spring-projects/spring-amqp/issues/1480 - caused problems with Boot auto configuration - since 3.0 is a major release, switching to CF there is not onerous - retain `CompletableFuture` as an async return type
This commit is contained in:
committed by
Artem Bilan
parent
e8f12b2156
commit
2746ebeaca
@@ -4678,8 +4678,7 @@ Version 2.0 introduced variants of these methods (`convertSendAndReceiveAsType`)
|
||||
You must configure the underlying `RabbitTemplate` with a `SmartMessageConverter`.
|
||||
See <<json-complex>> for more information.
|
||||
|
||||
Starting with version 2.4.7, the `AsyncRabbitTemplate` is deprecated in favor of `AsyncRabbitTemplate2` which returns `CompletableFuture` s instead of `ListenableFuture` s.
|
||||
In 3.0, `AsyncRabbitTemplate2` will be renamed to `AsyncRabbitTemplate`.
|
||||
IMPORTANT: In version 3.0, `AsyncRabbitTemplate` method return types will be `CompletableFuture` instead of `ListenableFuture`.
|
||||
|
||||
[[remoting]]
|
||||
===== Spring Remoting with AMQP
|
||||
|
||||
@@ -67,8 +67,7 @@ The `ProducerCustomizer` provides a mechanism to customize the producer before i
|
||||
|
||||
Refer to the https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/[Java Client Documentation] about customizing the `Environment` and `Producer`.
|
||||
|
||||
IMPORTANT: In version 2.4.7 `RabbitStreamOperations` and `RabbitStreamTemplate` have been deprecated in favor of `RabbitStreamOperations2` and `RabbitStreamTemplate2` respectively; they return `CompletableFuture` instead of `ListenableFuture`.
|
||||
`RabbitStreamOperations` and `RabbitStreamTemplate` will be removed in 3.0.
|
||||
IMPORTANT: In version 3.0, the method return types will be `CompletableFuture` instead of `ListenableFuture`.
|
||||
|
||||
==== Receiving Messages
|
||||
|
||||
|
||||
@@ -31,13 +31,3 @@ See <<remoting>> for more information.
|
||||
|
||||
The `Jackson2JsonMessageConverter` can now determine the charset from the `contentEncoding` header.
|
||||
See <<json-message-converter>> for more information.
|
||||
|
||||
==== AsyncRabbitTemplate
|
||||
|
||||
The `AsyncRabbitTemplate` is deprecated in favor of `AsyncRabbitTemplate2` which returns `CompletableFuture` s instead of `ListenableFuture` s.
|
||||
See <<async-template>> for more information.
|
||||
|
||||
==== Stream Support Changes
|
||||
|
||||
`RabbitStreamOperations` and `RabbitStreamTemplate` have been deprecated in favor of `RabbitStreamOperations2` and `RabbitStreamTemplate2` respectively; they return `CompletableFuture` instead of `ListenableFuture`.
|
||||
See <<stream-support>> for more information.
|
||||
|
||||
Reference in New Issue
Block a user