Revise splitterFunction
signatunre into Function<Flux<Message<?>, Flux<Message<?>>>
#107
Labels
type: enhancement
A general enhancement
Milestone
When we have a composition like this:
Then final "function" signature is like this
Supplier<Flux<Message<List<Message<?>>>>>
.And that is exactly what we don't expected from the splitter in the end of the composition.
While Spring Cloud Stream supports de-batching, it works for a
List
output only if function is bound by itself.In case of composition we got just a
Supplier
.Changing signature for the
splitterFunction
to reactive types would make it working even with aSupplier
composition.The workaround is like this extra function in the end of the composition:
The text was updated successfully, but these errors were encountered: