Skip to content

Commit 0454c8d

Browse files
authored
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
1 parent c87dbf7 commit 0454c8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/reactive-pulsar/reactive-message-consumption.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Flux<MessageResult<Void>> listen2(Flux<org.springframework.messaging.Message<Foo
111111

112112
NOTE: The listener method returns a `Flux<MessageResult<Void>>` where each element represents a processed message and holds the message id, value and whether it was acknowledged.
113113
The Spring `MessageUtils` has a set of static factory methods that can be used to create the appropriate `MessageResult` instance from a Spring message.
114+
The `MessageUtils` provides the same functionality for Spring messages as the set of factory methods on `MessagResult` does for Pulsar messages.
114115

115116
NOTE: There is no support for using `org.apache.pulsar.client.api.Messages<T>` in a `@ReactivePulsarListener`
116117

0 commit comments

Comments
 (0)