Skip to content

Commit

Permalink
GH-1473: Remove Unnecessary Deprecated Interfaces
Browse files Browse the repository at this point in the history
See #1473
See #1480

Migration interfaces to assist moving to `CompletableFuture` have been
removed from 2.4.x due to Boot auto configuration issues.

Therefore, these interfaces never existed in a released version of 2.4.x.
  • Loading branch information
garyrussell authored and artembilan committed Sep 13, 2022
1 parent f073c5f commit 80f8c9c
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 194 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ public CompletableFuture<Confirm> getFuture() {
return this.future;
}

/**
* Return a future to check the success/failure of the publish operation.
* @return the future.
* @since 2.4.7
* @deprecated as of 3.0, in favor of {@link #getFuture()}.
*/
@Deprecated
public CompletableFuture<Confirm> getCompletableFuture() {
return this.future;
}

/**
* Get the returned message and metadata, if any. Guaranteed to be populated before
* the future is set.
Expand Down
2 changes: 1 addition & 1 deletion src/reference/asciidoc/amqp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4677,7 +4677,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.

The `AsyncRabbitTemplate2` (added to assist with migration to this release) is now deprecated in favor of `AsyncRabbitTemplate` which now returns `CompletableFuture` s instead of `ListenableFuture` s.
IMPORTANT: Starting with version 3.0, the `AsyncRabbitTemplate` methods now return `CompletableFuture` s instead of `ListenableFuture` s.

[[remoting]]
===== Spring Remoting with AMQP
Expand Down
5 changes: 0 additions & 5 deletions src/reference/asciidoc/appendix.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ Support remoting using Spring Framework’s RMI support is deprecated and will b
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.

==== Message Converter Changes

The `Jackson2JsonMessageConverter` can now determine the charset from the `contentEncoding` header.
Expand Down
10 changes: 5 additions & 5 deletions src/reference/asciidoc/stream.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ The `RabbitStreamTemplate` provides a subset of the `RabbitTemplate` (AMQP) func
----
public interface RabbitStreamOperations extends AutoCloseable {
ListenableFuture<Boolean> send(Message message);
ConvertableFuture<Boolean> send(Message message);
ListenableFuture<Boolean> convertAndSend(Object message);
ConvertableFuture<Boolean> convertAndSend(Object message);
ListenableFuture<Boolean> convertAndSend(Object message, @Nullable MessagePostProcessor mpp);
ConvertableFuture<Boolean> convertAndSend(Object message, @Nullable MessagePostProcessor mpp);
ListenableFuture<Boolean> send(com.rabbitmq.stream.Message message);
ConvertableFuture<Boolean> send(com.rabbitmq.stream.Message message);
MessageBuilder messageBuilder();
Expand Down Expand Up @@ -67,7 +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 `RabbitStreamOperations2` and `RabbitStreamTemplate2` were added to assist migration to this version; `RabbitStreamOperations2` and `RabbitStreamTemplate2` are now deprecated in favor of `RabbitStreamOperations` and `RabbitStreamTemplate` respectively.
IMPORTANT: Starting with version 3.0, the method return types are `CompletableFuture` instead of `ListenableFuture`.

==== Receiving Messages

Expand Down
5 changes: 2 additions & 3 deletions src/reference/asciidoc/whats-new.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ The remoting feature (using RMI) is no longer supported.

==== AsyncRabbitTemplate

The `AsyncRabbitTemplate2`, which was added in 2.4.7 to aid migration to this release, is deprecated in favor of `AsyncRabbitTemplate`.
The `AsyncRabbitTemplate` now returns `CompletableFuture` s instead of `ListenableFuture` s.
IMPORTANT: The `AsyncRabbitTemplate` now returns `CompletableFuture` s instead of `ListenableFuture` s.
See <<async-template>> for more information.

==== Stream Support Changes

`RabbitStreamOperations2` and `RabbitStreamTemplate2` have been deprecated in favor of `RabbitStreamOperations` and `RabbitStreamTemplate` respectively.
IMPORTANT: `RabbitStreamOperations` and `RabbitStreamTemplate` methods now return `CompletableFuture` instead of `ListenableFuture`.

Super streams and single active consumers thereon are now supported.

Expand Down

0 comments on commit 80f8c9c

Please sign in to comment.