From 0454c8df7e0d8f64953b41711bbc692153e383db Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 20 May 2024 11:12:43 -0500 Subject: [PATCH] Clarify use of MessageResult vs. MessageUtils (#681) Updates the reactive-message-consumption.adoc to clarify the difference between the factory methods on `MessageResult` and `MessageUtils`. Resolves #666 --- .../reference/reactive-pulsar/reactive-message-consumption.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/reactive-pulsar/reactive-message-consumption.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/reactive-pulsar/reactive-message-consumption.adoc index 48ed9144..42c8691a 100644 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/reactive-pulsar/reactive-message-consumption.adoc +++ b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/reactive-pulsar/reactive-message-consumption.adoc @@ -111,6 +111,7 @@ Flux> listen2(Flux>` where each element represents a processed message and holds the message id, value and whether it was acknowledged. The Spring `MessageUtils` has a set of static factory methods that can be used to create the appropriate `MessageResult` instance from a Spring message. +The `MessageUtils` provides the same functionality for Spring messages as the set of factory methods on `MessagResult` does for Pulsar messages. NOTE: There is no support for using `org.apache.pulsar.client.api.Messages` in a `@ReactivePulsarListener`