GH-9617: @SuppressWarnings("removal") for ListenableFuture
Fixes: #9617 Issue link: https://github.com/spring-projects/spring-integration/issues/9617 The `ListenableFuture` is marked `forRemoval` in Spring Framework. So, fix the code base to use `@SuppressWarnings("removal")`. Also, add a warning into logs that `ListenableFuture` support will be removed in `7.0`. * Fix JavaDocs where `ListenableFuture` is mentioned in favor of `CompletableFuture`
This commit is contained in:
@@ -50,18 +50,18 @@ import org.springframework.util.MimeType;
|
||||
* <p>
|
||||
* An RSocket operation is determined by the configured {@link RSocketInteractionModel} or respective SpEL
|
||||
* expression to be evaluated at runtime against the request message.
|
||||
* By default the {@link RSocketInteractionModel#requestResponse} operation is used.
|
||||
* By default, the {@link RSocketInteractionModel#requestResponse} operation is used.
|
||||
* <p>
|
||||
* For a {@link Publisher}-based requests, it must be present in the request message {@code payload}.
|
||||
* The flattening via upstream {@link org.springframework.integration.channel.FluxMessageChannel} will work, too,
|
||||
* but this way we will lose a scope of particular request and every {@link Publisher} event
|
||||
* will be send in its own plain request.
|
||||
* will be sent in its own plain request.
|
||||
* <p>
|
||||
* If reply is a {@link reactor.core.publisher.Flux}, it is wrapped to the {@link Mono} to retain a request scope.
|
||||
* The downstream flow is responsible to obtain this {@link reactor.core.publisher.Flux} from a message payload
|
||||
* and subscribe to it by itself. The {@link Mono} reply from this component is subscribed from the downstream
|
||||
* {@link org.springframework.integration.channel.FluxMessageChannel} or it is adapted to the
|
||||
* {@link org.springframework.util.concurrent.ListenableFuture} otherwise.
|
||||
* {@link java.util.concurrent.CompletableFuture} otherwise.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user